Skip to main content

Crate jvmrs

Crate jvmrs 

Source
Expand description

JVMRS - JVM implementation in Rust

§Module Organization

§Core / Runtime

  • class_file - Class file parsing
  • class_loader - Class loading from classpath
  • class_cache - Fast binary cache (.jvmc)
  • memory - Heap, stack frames, values
  • allocator - Arena-based allocation
  • gc - Garbage collection

§Execution

  • interpreter - Bytecode execution engine
  • native - Native method dispatch
  • reflection - Runtime introspection

§Compilation

  • jit - JIT manager, tiered compilation
  • cranelift_jit - Cranelift bytecode-to-native
  • aot_compiler - AOT to object files
  • wasm_backend - WebAssembly emission (feature: wasm)

§Developer Tools

  • debug - Logging, trace config
  • profiler - Flame graphs, hotspots
  • trace - Time-travel debugging
  • deterministic - 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.