Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W30.2025 · 21–27 JulCore

Features

  • OCaml trunk (polymorphic parameters): Merged. Functions can now take parameters with polymorphic types, e.g. val f : ('a. 'a -> 'a list) -> int list. An explicit annotation is required; unannotated parameters remain monomorphic. #13806

  • OCaml trunk (Hashtbl): Merged. Adds Hashtbl.remove_mem and Hashtbl.replace_mem, which return the previous binding in addition to performing the mutation. Avoids a separate find_opt call. #14060

  • OCaml trunk (module patterns): Merged. The parsetree now distinguishes (module M : S) from (module M) : (module S) in patterns. Affects ppxlib consumers. #14149

  • OCaml trunk (minor heap reservation): Proposed. Reserves minor-heap address space for 1 domain initially, doubling to max_domains, instead of reserving for all 128 domains up front. Addresses crashes under constrained virtual-memory limits. #14162

Fixes

  • OCaml 5.4 (symbol mangling): Merged. Reverts to . as the module separator in symbol names on non-Apple Unix systems, restoring perf and flamegraph.pl compatibility. Apple systems keep the $ scheme for lldb. #14143

  • OCaml trunk (shared-heap GC): Merged. Free blocks in the shared heap are now run-length encoded, making sweep time proportional to the live fraction. Benchmarks show up to 3.85× speedup on sparse heaps. #13616

  • OCaml trunk (minor heap arena): Merged. Fixes incorrect decommit of a domain's minor heap when it leaves the STW participant set, and a follow-up bug where the arena size was zeroed before re-allocation. #14158, #14164

Compatibility and Releases

  • OCaml trunk (Gc.stat): Proposed. Adds a field tracking total bytes held by live fibers, repurposing the previously unused stack_size slot. #14168