Features
-
OxCaml variable tracing: adds
-dvariable-availabilityto track which variables survive from typing to emitted debug info, classifying each loss as acceptable or a gap. #6158 -
OxCaml CU unloading: proposes runtime unloading of metaprogramming compilation units via mark/sweep over heap-shaped code blocks with back-pointers in
.textand explicit code-pointer liveness at safepoints. #5960 -
OxCaml CFG merge functions: adds
Cfg_merge_functions, an identical-code-folding pass behind-cfg-merge-functionsthat collapses equivalent function CFGs into tail-call thunks within a compilation unit. #6148 -
OxCaml idx_atomic: introduces
('a, 'b) idx_atomic, a block index for[@atomic]fields that emits atomic loads/stores and supports compare-and-swap. #6130 -
OxCaml any-kind record inference: creates sort variables for record fields of kind
anyin pattern matching, record creation, and functional update, accepting previously rejected programs. #6145 -
OxCaml CFG jump threading: adds a pre-register-allocation pass that folds comparisons into branch terminators and threads jumps through empty merge blocks. Reduces spills 0.26% and reloads 0.63% on the compiler. #6104
Fixes
- OxCaml profile overhead: merged. Skips
Profile.record_callwhen no profiling flag is active, making compilation 30–35% faster on workloads with many small functions. #6141
Compatibility and Releases
- OxCaml C API regions: merged. Adds
caml_region_begin/caml_region_endso C callbacks can establish stack-allocation regions for@ localarguments. #6142