Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W09.2026 · 23 Feb – 1 Marocaml/ocaml

Features

Lazy.Mutexed (trunk, 5.5): new stdlib module providing mutex-protected lazy thunks for safe concurrent initialization. Merged to trunk and cherry-picked to 5.5. The thunk may be forced by multiple domains; the first result wins and subsequent forces return the cached value. #14393

Compatibility and Releases

OCaml minor GC (trunk, open): inlines the hot path of oldify_one, eliminates global-variable access, and exposes major-heap free lists for inline allocation. Measured 2–3% total runtime improvement on promotion-heavy workloads in OxCaml. #14571

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 when frame pointers are enabled. Cherry-picked to 5.4 and 5.5. #14589

OCaml s390x shared runtime (trunk): switches runtime glue calls from PLT to GOT-indirect calls, preventing the lazy-binding trampoline from corrupting the OCaml fiber stack. Fixes segfaults with libasmrun_shared.so on RHEL/Fedora s390x. #14547

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

OCaml 5.5.0~alpha1 typing: Ctype.Cannot_apply fatal exception on unboxed record types with polymorphic annotations, introduced by #13806. Fix proposed in #14604 (open); issue #14603.

OCaml cleanup-at-exit mode (trunk): OCAMLRUNPARAM=c=1 segfaults on bytecode when secondary domains are blocked in C calls at shutdown. Root cause: caml_shutdown unloads shared libraries while cancelled threads are still executing. Open; discussion proposes removing or no-op'ing the mode. #14594

OCaml 4.14 ARM64 (4.14 branch): backports instruction-size underestimation fixes from #13667, resolving "conditional branch out of range" assembler errors on arm64. #14606