OCaml trunk and 5.5 fix a silent miscompilation in the linear scan allocator and an ARM64 assembler error with frame pointers, both cherry-picked to 5.4 and 5.5. A new Lazy.Mutexed stdlib module provides mutex-protected lazy thunks for safe concurrent initialization across domains.
Features
OCaml Lazy.Mutexed (trunk, 5.5): New stdlib module providing mutex-protected lazy thunks for safe concurrent initialization across domains. Merged to trunk and cherry-picked to 5.5. #14393
OCaml 5.5.0~alpha1: First alpha release introduces a compiler-cloning meta-package (enabled by default) for instant switch creation from a previously compiled compiler. #29462, #29472
Dune Rocq expected-output tests: When a .v file has a corresponding .expected file in a rocq.theory stanza, Rocq stdout is captured and diffed under @runtest. Guarded by (lang rocq 0.12). #13632, #13684
Mosaic 0.1.0: New terminal UI framework (packages mosaic, matrix, toffee) implementing Elm Architecture, Flexbox/Grid layout, and Tree-sitter syntax highlighting. Merged 2026-02-28. #29312
Compatibility and Releases
Dune 3.21 portable lock-dir: Switching the default lock format to portable in 3.21 changed depext filtering, keeping undefined variables in filters. Workaround: set DUNE_CONFIG__PORTABLE_LOCK_DIR=disabled; fix targeted for 3.22. #13680
Merlin v5.7-505~preview: Released 2026-02-27; includes locate-types result refinements, a record-field autocompletion fix, and a signature-help loop fix. Release
Fixes
OCaml ARM64 codegen (trunk, 5.4, 5.5): Replaces manual add-immediate instructions with emit_addimm to handle offsets exceeding the 12-bit range, fixing "immediate out of range" assembler errors with frame pointers enabled. Cherry-picked to 5.4 and 5.5. #14589
OCaml linear scan allocator (trunk, 5.5): Disables stack-slot reuse when evicting a previously register-allocated interval, fixing silent miscompilation under ocamlopt -linscan. Cherry-picked to 5.5. #14583
Dune C stubs header dependency: C stub compilation rules now declare dependencies on actual *.h files rather than only the directory path, fixing stale-cache failures when switching compilers. #13652
Dune install cycle crash: dune build @install no longer hangs or crashes when multiple install stanzas target the same share directory. #13692
OxCaml separability: Corrects a soundness bug where type definitions with constraint were misclassified as separable, causing segfaults. Merged. #5510
Merlin signature help: Corrects incorrect parameter binding for let..in expressions so signature help no longer misattributes bindings. Merged. #2036