Core covers the OCaml compiler and language RFCs.
Core repository summaries
1 active · 1 unchanged
ocaml/ocaml
PermalinkFeatures
-
Configurable domain stack size (open, #14860): A new
Ssetting inOCAMLRUNPARAM(e.g.OCAMLRUNPARAM='S=50M') sets the per-domain stack size. Addresses stack overflows in C FFI code on spawned domains (#14195). -
Weak.iter,Weak.iteri,Weak.foldi_left(open, #14792): New stdlib functions that iterate live slots in a weak array.foldi_leftis a C primitive passing each element directly to the callback, avoiding one heap allocation per live element. -
Extensible IO channels (open, #14775): Proposal implementing the modular IO RFC. Adds user-defined in/out channels alongside existing C channels (renamed "native"). Under stdlib-team review.
Fixes
-
mark_headerlazy-tag check (merged, #14856): Corrects an inverted comparison introduced in #14816 that could cause memory corruption and SEGVs in multi-domain programs using laziness. Not backported to 5.5. -
Filename.quote_commandredirection escaping on Windows (merged, #14853): Redirection arguments (e.g.~stdout:"output&false") were not fully escaped, allowing command injection viaSys.command. The fix is proposed for backport to 5.5. -
tfunctorexpansion-node update (merged, #14845): Fixes an uncaught exception when expansion nodes containtfunctorarguments. Also restores type abbreviations involving module-dependent types incopy_sep. -
Native
Iatomic_fetch_addon all backends (open, #14575): Replaces the C call path with inline assembly on amd64, arm64, riscv, and power. Benchmarks show the existing C path is faster in single-domain mode due to thecaml_domain_alone()fast path; the native path targets multi-domain performance. -
Object finalizer prevents collection (open, #14861): A
Gc.finalise_lastregistered in aninitializerblock capturesselfimplicitly through field lookup, creating a reference cycle that blocks garbage collection. Workaround: wrap the finalizer in a standalone function.