Features
-
Atomic.Array (trunk): new stdlib module providing
make,get,set,exchange,compare_and_set, andfetch_and_addfor lock-free concurrent data structures. Safe and unsafe (unbound-checked) variants are available. #14611 -
List.append_map / List.rev_append_map (trunk): tail-recursive combination of
mapandappendin a single pass, roughly twice as fast and half the allocations of the composed form. #13554 -
Semantic highlighting in type errors (trunk, open): type-comparison error messages now highlight the specific incompatible subexpressions using a syntactic pass plus trace-guided pass. #14659
Compatibility and Releases
-
Gc.stat deprecated (trunk):
Gc.statno longer triggers a full major collection and is now equivalent toGc.quick_stat. CallGc.full_majorexplicitly for up-to-date counters. #12023 -
Sys.runtime_parameters (trunk): the
R(randomised-hashtable) option is now preserved and visible inSys.runtime_parametersinstead of being silently consumed. #14292
Fixes
-
Polymorphic parameters soundness (trunk, 5.5): a segfault triggered by
let f ([x] : 'a. 'a list) = ...is fixed by correctly splitting poly-pattern typing from the exhaustiveness checker. Cherry-picked to 5.5. #14652, issue #14434 -
Bytecode effects heap corruption (trunk):
try Effect.perform with Effect.Unhandledunder a deepEffect.Deep.match_withhandler no longer segfaults in bytecode; the continuation is now rooted across the C call. #14647, issue #14644 -
Ephemeron GC budget (trunk): restores a missing budget-consumption line in the ephemeron marking loop that was dropped during a prior rewrite. #14610
Performance
-
Faster minor GC (trunk, open): inlines the hot
oldify_onepath and exposes major-heap free lists for inline allocation, yielding 2–3 % total-runtime gains on promotion-heavy workloads. #14571 -
Ephemeron quadratic blowup (trunk, open): eagerly marks data of preserved ephemerons so dependent ephemerons are resolved in one round; a 20 000-deep chain drops from ~0.4 s per cycle to ~1 ms after the first. #14657