Features
OxCaml variable tracing: adds -dvariable-availability to track which variables survive from typing to emitted debug info, classifying each loss as acceptable or a gap. #6158
OxCaml CFG merge functions: adds Cfg_merge_functions, an identical-code-folding pass behind -cfg-merge-functions that 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 any in 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
OxCaml CU unloading: proposes runtime unloading of metaprogramming compilation units via mark/sweep over heap-shaped code blocks with back-pointers in .text and explicit code-pointer liveness at safepoints. #5960
Fixes
OxCaml profile overhead: merged. Skips Profile.record_call when no profiling flag is active, making compilation 30–35% faster on workloads with many small functions. #6141
OxCaml opam-repository #48: ocaml-variants build failure in Dune projects (missing Makefile.config) resolved; issue closed 2026-05-28. Issue
Compatibility and Releases
OxCaml C API regions: merged. Adds caml_region_begin/caml_region_end so C callbacks can establish stack-allocation regions for @ local arguments. #6142
OxCaml opam-repository #51: proposes updating ignore-opam.patch to match current Makefile.common-ox line numbers; Dune's internal patcher rejects stale hunks that GNU patch would fuzz past. PR
OxCaml opam-repository #46: v0.18~preview.130.100+614 is present on the dev branch; release to main is pending. Approximately 30 packages lack a release commit for that version. Issue