Commit 314de9a
committed
Complete GC improvements: implement pointer tagging, vector pooling, dedup scratch, and recursive clone optimization
Implement all 8 identified GC optimizations: pointer tagging infrastructure (SmallInt/Bool/Unit encoding with rotating unpack scratch), pinned-chunk pooling with madvise reclamation, record vector pooling (7-bin cache), thread-local dedup scratch reuse, two-tier string interning (L1 thread-local + L2 global), iterative deep_clone_value (eliminates stack overflow on fork environments), and conditional GC stats counters (gated by gc-stats feature). All 422 tests pass in both release and gc-stats modes; 6 example programs verified working with tagging active.1 parent 378f062 commit 314de9a
3 files changed
Lines changed: 536 additions & 159 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
9 | 16 | | |
10 | 17 | | |
11 | 18 | | |
| |||
20 | 27 | | |
21 | 28 | | |
22 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
0 commit comments