jetcrab\memory/mod.rs
1//! # Memory Management Module
2//!
3//! Provides memory management capabilities for the JavaScript engine,
4//! including allocation, garbage collection, and memory error handling.
5//!
6//! ## Overview
7//!
8//! The memory module handles:
9//!
10//! - **Memory Allocation**: Dynamic memory allocation for objects
11//! - **Garbage Collection**: Automatic memory reclamation
12//! - **Heap Management**: Memory heap organization and access
13//! - **Error Handling**: Memory-related error types and recovery
14//!
15//! ## Components
16//!
17//! - **Allocator**: Memory allocation strategies
18//! - **Collector**: Garbage collection algorithms
19//! - **Heap**: Memory heap structure and management
20//! - **Errors**: Memory error types and handling
21//!
22//! ## Usage
23//!
24//! ```rust
25//! use jetcrab::memory::{MemoryHeap, GarbageCollector, MemoryError};
26//!
27//! let heap = MemoryHeap::new();
28//! let collector = GarbageCollector::new();
29//! ```
30
31pub mod allocator;
32pub mod collector;
33pub mod error;
34pub mod heap;
35
36pub use collector::GarbageCollector;
37pub use error::MemoryError;
38pub use heap::MemoryHeap;