Skip to content

Document VM Classloader - Value 4 #88

@LSantha

Description

@LSantha

VM Classloader

Document the VM Classloader JNode concept in the wiki.

Value: 4

Concept Summary

JVM classloader implementation with plugin delegation. VM Classloader provides the class loading infrastructure for JNode's JVM, enabling plugin-based class loading and integration with the plugin system.

Key Files

  • core/src/core/org/jnode/vm/classmgr/VmClassLoader.java
  • core/src/core/org/jnode/vm/classmgr/BootstrapClassLoader.java

Occurrences

~80 references in classmgr package

Wiki Status

NOT documented

Bridges

Classloader, Bootstrap, Plugin system

Instructions

Skill to Use

Use the [[update-wiki|update-wiki skill]] (load with skill({ name: "update-wiki" })) for understanding JNode internals.

Context Research

Study VmClassLoader.java and BootstrapClassLoader.java to understand the classloader implementation. Review how class loading works, how plugin delegation works, and how the bootstrap classloader integrates with the plugin system. Research the relationship between class loader and class management.

Update index.md

  • Pages table: Add entry for VM-Classloader.md
  • Concepts → Pages table: Add "VM Classloader" mapping to [[VM-Classloader]]
  • Source Path → Pages table: Add mappings for core/src/core/org/jnode/vm/classmgr/
  • Task Routing table: Add relevant task route(s)

Wiki Page Structure

# VM Classloader

> JVM classloader implementation with plugin delegation.

## Overview
2-3 paragraph explanation of VM Classloader, its role in the JVM, and how it integrates with the plugin system.

## Key Components
| Class / File | Role |
|---|---|
| `core/src/core/org/jnode/vm/classmgr/VmClassLoader.java` | VM classloader implementation |
| `core/src/core/org/jnode/vm/classmgr/BootstrapClassLoader.java` | Bootstrap classloader |

## How It Works
Explanation of how VM classloader works, how class loading is delegated to plugins, how bootstrap classes are loaded, and how the plugin system integrates.

## Gotchas & Non-Obvious Behavior
- Plugin delegation must be carefully managed
- Bootstrap classes must be available early
- Classloader hierarchy affects visibility

## Related Pages
- [[VM-Class-Manager]]
- [[Plugin-System]]
- [[Class-Library-Integration]]

Related Concepts: Classloader, Bootstrap, Plugin system, VM, Java classes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions