Skip to content

Document VMProcessClassLoader - Value 4 #54

@LSantha

Description

@LSantha

VMProcessClassLoader

Document the VMProcessClassLoader JNode concept in the wiki.

Value: 4

Concept Summary

Classloader for VM processes that loads classes from the VM process's classpath. VMProcessClassLoader implements a dedicated classloading mechanism for isolated VM processes, ensuring proper classpath separation and process isolation.

Key Files

  • core/src/core/org/jnode/vm/VmProcessClassLoader.java

Occurrences

~15 instances in core/src/core

Wiki Status

NOT documented

Bridges

VM, Classloader, Process isolation

Instructions

Skill to Use

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

Context Research

Research VmProcessClassLoader to understand how it loads classes for VM processes. Study the classpath mechanism and how process isolation is enforced. Compare with normal classloaders to understand the differences and design rationale.

Update index.md

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

Wiki Page Structure

# VMProcessClassLoader

> Classloader for VM processes that loads classes from the VM process's classpath.

## Overview
2-3 paragraph explanation of VMProcessClassLoader, its role in VM process isolation, and how it differs from standard classloaders.

## Key Components
| Class / File | Role |
|---|---|
| `core/src/core/org/jnode/vm/VmProcessClassLoader.java` | Main classloader implementation |

## How It Works
Explanation of how VMProcessClassLoader loads classes, manages the process-specific classpath, and enforces process isolation.

## Gotchas & Non-Obvious Behavior
- Process isolation requires careful classpath management
- Classloader hierarchy must be maintained correctly
- Resource cleanup is important to prevent leaks

## Related Pages
- [[VmClassLoader]]
- [[Classloader]]
- [[Process-Isolation]]

Related Concepts: VmClassLoader, Classloader, Process isolation, VM processes

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