Features
-
OCAMLRUNPARAMgains anSsetting (e.g.S=50M) to configure per-domain stack size. Addresses stack overflows in C FFI code on spawned domains. (open, #14860) -
Weak.iter,Weak.iteri,Weak.foldi_leftiterate live slots in a weak array.foldi_leftis a C primitive avoiding one heap allocation per live element. (open, #14792) -
Extensible IO channels implement the modular IO RFC, adding user-defined in/out channels alongside existing C channels (renamed "native"). Under stdlib-team review. (open, #14775)
Fixes
-
Corrects an inverted lazy-tag comparison in
mark_headerthat caused memory corruption and SEGVs in multi-domain programs using laziness. Merged; not backported to 5.5. #14856 -
Filename.quote_commandnow fully escapes redirection arguments on Windows, closing a command-injection vector viaSys.command. Merged; backport to 5.5 proposed. #14853 -
Fixes an uncaught exception when
tfunctorarguments appear in expansion nodes. Also restores type abbreviations involving module-dependent types incopy_sep. Merged. #14845 -
Replaces the C call path for
Iatomic_fetch_addwith inline assembly on amd64, arm64, riscv, and power. Targets multi-domain performance; the C path remains faster in single-domain mode. (open, #14575) -
A
Gc.finalise_lastregistered in an objectinitializerblock capturesselfimplicitly, creating a reference cycle that blocks collection. Workaround: wrap the finalizer in a standalone function. (open, #14861)