Expand description
JVMRS - JVM implementation in Rust
§Module Organization
§Core / Runtime
class_file- Class file parsingclass_loader- Class loading from classpathclass_cache- Fast binary cache (.jvmc)memory- Heap, stack frames, valuesallocator- Arena-based allocationgc- Garbage collection
§Execution
interpreter- Bytecode execution enginenative- Native method dispatchreflection- Runtime introspection
§Compilation
jit- JIT manager, tiered compilationcranelift_jit- Cranelift bytecode-to-nativeaot_compiler- AOT to object fileswasm_backend- WebAssembly emission (feature: wasm)
§Developer Tools
debug- Logging, trace configprofiler- Flame graphs, hotspotstrace- Time-travel debuggingdeterministic- Reproducible execution
§Optional Features
ffi- C API (feature: ffi)interop- Java/Rust interop (feature: interop)async_io- Async class loading (feature: async)simd- Vectorized arrays (feature: simd)truffle- Language frontend API (feature: truffle)security,aop,cloud,hot_reload- Additional capabilities
Modules§
- allocator
- Arena-based allocators for better cache locality and reduced fragmentation.
- annotations
- Annotation parsing from class file attributes.
- aop
- Proxy-based AOP (Aspect-Oriented Programming) support at runtime.
- aot_
compiler - AOT Compiler - Ahead-of-time compilation to native object files.
- class_
cache - Fast class loading with custom binary cache format.
- class_
file - class_
loader - Class loading implementation for JVMRS
- cloud
- Cloud and distributed computing extensions.
- cranelift_
jit - Cranelift-based JIT: bytecode-to-native code generation.
- debug
- deterministic
- Deterministic execution mode for real-time, safety-critical, and blockchain systems.
- error
- Custom error types for JVMRS
- extensions
- Rust crate integration - plugin system for Java extensions.
- gc
- Garbage collection: generational GC with parallel collection and ownership-based root tracking for low-pause behavior.
- hot_
reload - Hot code reloading - replace methods at runtime without restart.
- interpreter
- JVM bytecode interpreter.
- jit
- JIT Compilation Module for jvmrs
- jni
- Java Native Interface (JNI) implementation.
- memory
- JVM memory: heap, stack frames, values.
- native
- profiler
- Integrated profiler with flame graph export and hotspot detection.
- reflection
- security
- Security instrumentation - runtime vulnerability detection.
- serialization
- Serialization/deserialization support (java.io.Serializable).
- trace
- Execution trace recorder - foundation for time-travel debugging.
- visualization
- Visualization tools for JVM internals.