Skip to main content

lua_gc/
lib.rs

1//! Lua 5.4 garbage collector.
2//!
3//! Modules:
4//!   heap — Phase-D production mark-sweep (Gc<T>, Trace, Heap)
5//!
6//! Historical Phase-A partial ports of C-Lua's `lgc.c`/`lmem.c` were removed
7//! once `heap.rs` became the production collector. Keep this crate's source
8//! tree limited to compiled modules so unsafe audits reflect the active build.
9
10pub mod heap;
11
12pub use heap::{Color, Gc, GcBox, GcHeader, GcState, Heap, HeapGuard, Marker, StepBudget, StepOutcome, Trace, with_current_heap};
13
14// ──────────────────────────────────────────────────────────────────────────
15// PORT STATUS
16//   source:        (module aggregator; per-file ports own their own trailers)
17//   target_crate:  lua-gc
18//   confidence:    high
19//   todos:         0
20//   port_notes:    0
21//   unsafe_blocks: 0
22//   notes:         Module aggregator: re-exports the public surface of heap.rs
23//                  (Gc, GcBox, GcHeader, Heap, HeapGuard, Marker, Trace, etc.).
24//                  No code of its own. The mark-and-sweep collector lives in
25//                  heap.rs. Reference-only Phase-A partial ports are not kept
26//                  in src/, so source scans track the active build.
27// ──────────────────────────────────────────────────────────────────────────