Features
OxCaml DWARF phantom variables: Open PR adds support for emitting DWARF location descriptions for optimized-away variables reconstructed from Cmm through CFG and Linear. Enables debuggers to display values of variables eliminated by optimization; gated behind !Dwarf_flags.restrict_to_upstream_dwarf. #4595
OxCaml mod contended inference: Open PR introduces limited inference that marks specific let-bound values as crossing contention boundaries, even when their type does not generally cross. Inference bails out at function calls; annotations and pattern variables are deferred to follow-up PRs. #4929
OxCaml Domain.self_index: Open PR exposes caml_ml_domain_index as Domain.self_index, enabling per-domain array indexing to avoid contention. Mirrors upstream #13171. #4950
OxCaml Flambda2 relations as projections: Merged PR stores Is_null, Is_int, and Get_tag as fields of value-kind types, enabling precise tracking during n-way join. This is a prerequisite for the match-in-match heuristic. #4390
OxCaml speculative inlining profiler: Merged PR adds a profiling pass that records speculative inlining decisions, aiding analysis of inlining behaviour. Notes that nested speculative inlining may have been unintentionally enabled by a prior change. #4375
Fixes
OxCaml parameter module aliases: Open PR disallows aliases to functor parameters, preventing miscompilation where substitution through a coercion projects the wrong module member. Closes a segfault path in parameterized libraries. #4948
OxCaml to_cmm re-ordering: Open PR adds a validity criterion to to_cmm_env that prevents substitutions which would change observable program semantics. Also fixes lost bindings from incorrect flush_delayed_lets calls. #4941
OxCaml native Dynlink parameterised modules: Merged PR switches native Dynlink from name_as_string to full_path_as_string, so instances differing only by functor arguments are no longer conflated. Bytecode backend was already correct. #4935