Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W22.2026 · 25–31 Mayocaml/ocaml

Fixes

OCaml compiler (merged): eliminates per-function Profile.record_call overhead when -dprofile, -dcounters, or -dtimings are not active. A microbenchmark of 1000 tiny functions shows a 30% compile-time reduction. #14832

OCaml runtime, major GC (merged): fixes ephemeron orphaning during Phase_sweep_ephe and clarifies num_domains_{todo,done} counter semantics. The orphaning fix prevents dangling pointers when a domain terminates mid-cycle; the counter change removes a pessimistic ephe_next_round call. #14734, #14733

OCaml Unix library, Win32 (merged): fixes socket_poll_add in select_win32.c so that Unix.select no longer raises "original file handle not found" or returns wrong descriptors when a socket appears in multiple fd lists. #14764, issue #14758

OCaml compiler, warning 60 (open): corrects the source location reported for unused-module warnings on non-aliasable module Bar := X.Foo substitutions, which previously pointed at the original declaration in a different .mli. #14831, issue #12745

OCaml flambda (open): prevents an infinite inlining loop when a stub function is recursive (e.g. let rec f ?(x = f ()) () = x + 1). The inline-stub stack is cleaned at each non-stub inlining to avoid false positives. #14839, issue #14828

Features

OCaml language (proposal, open): eta-expands argument-less constructor expressions in function-type contexts, enabling List.map Some [1;2;3] without new syntax. Restricted to unary constructors in the current draft. #14803

OCaml runtime, GC pacing (open): replaces the existing pacing logic with a new algorithm; macro-benchmark sweeps show wall-time improvements across all tested s/o parameter combinations at a small RSS cost. Still requires rebasing and counter updates. #14796

OCaml runtime, minor GC (open): inlines the fast path of oldify_one and exposes major-heap free lists for inline allocation, targeting a 2–3% total runtime gain on promotion-heavy workloads. Upstreamed from OxCaml. #14571