OCaml 5.5.2 shipped on 23 October, bundling six security fixes and four bugfixes. The security patches cover an integer overflow in Unix.map_file, invalid captured groups in Str.string_partial_match, demarshaling issues in Marshal, and command-quoting defects on Windows. Two of the bugfixes correct miscompilations in the native compiler. If you are running 5.5.x, this is the update to pull. (Source)
On the performance side, the compiler now emits native instructions for Atomic.exchange and Atomic.compare_and_set across amd64, arm64, riscv, power, and s390x, eliminating C calls for immediate values. On amd64 a single-domain exchange benchmark dropped from 1.36 seconds to 0.51. A regression has since surfaced on amd64 where the codegen miscompiles when the result register is spilled; fixes are in progress, so concurrent code on that architecture warrants a watch. (Source)
For large projects, a variance-checking slowdown that pushed compilation of heavy ppxlib classes past thirty minutes is being addressed. A consolidated check for constrained parameters cuts a 731-second benchmark to 83 seconds and is targeted for the 5.6 release. (Source)
W44.2026 · 26 Oct – 1 Nov/Core
Fixes
#15204 (merged): Pattern matching on a mutated variant field was treated as exhaustive when it was not, causing segfaults. The partiality record now propagates the downgrade correctly.
#15208, #15213 (merged): Two flambda miscompilations fixed. -Oclassic alias analysis produced garbage values by treating symbol fields as aliased to the symbol; float-array lifting on a dead GADT branch triggered a fatal error.
#15168 (merged): Scanf.unescaped now handles octal (\oNNN), uchar (\u{…}), and backslash-space escapes, matching the lexer. Fixes #14930.
Issues #15205, #15189 (open): Native Atomic.exchange and Atomic.compare_and_set miscompile on amd64 when the result register is spilled; regression from #14980. Fixes in progress via #15207 and #15192.
Features
#15167 (merged): ocamldep gains a -strict flag that exits non-zero on missing files or parse errors and produces no output on failure. Fixes #15132.
#15227 (open): Head shapes and constructor unboxing extends [@unboxed] to multi-constructor variant types. Includes specification and implementation documents.
RFC #14 (open proposal, updated 2026-10-31): Extends [@@unboxed] to eliminate the block for unary constructors with run-time-distinguishable argument types, reducing allocation and indirection.
Compatibility
#14602 (merged): Unix.rename and Sys.rename on Windows now succeed when the destination file is read-only, matching POSIX semantics.
#15219 (open): Fast path for variance checking of constrained parameters reduces compilation of the #15163 benchmark from 760 s to 3.7 s.