Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W28.2026 · 6–12 JulCore

Features

  • New OCAMLRUNPARAM=S=<size> controls the stack allocated by Domain.spawn. Addresses segfaults from large C stack frames in spawned domains. #14860 (merged)

  • Proposed stdlib addition Atomic.compare_and_exchange : 'a t -> expected:'a -> set:'a -> 'a. ~25% faster than an OCaml retry loop under contention. #14912 (open)

  • arm64: replaces dmb ishld; str with stlr/stlur for aligned word stores. New -flrcpc2/-fno-lrcpc2/-fbarrier-store/-fstore-release options; configure auto-detects FEAT_LRCPC2. #14922 (open)

  • Full (non-partial) function calls bypass the caml_apply trampoline. Benchmarks show ~25% runtime reduction on function-call-heavy code. #14925 (open)

Fixes

  • Sys.file_exists on Windows: replaced stat_os with GetFileAttributes. Fixes a Windows 11 24H2 kernel bug where results depended on another process's CWD. #14919 (merged)

  • Filename.concat and Filename.dirname now treat : strictly as a volume separator. Filename.concat "C:\Foo:" "bar" yields C:\Foo:\bar. Targeted for 5.6. #14916 (merged)

  • Eliding the occurs-check for freshly-instantiated type variables reduces compilation of the js_of_ocaml reproducer from ~5 min to ~5 s. A companion change further reduces it to ~170 ms. #14913, #14927 (open)

Compatibility

  • { r with j } on a record with [@atomic] fields compiles to a non-atomic load, violating the atomicity contract. The plan is to forbid such implicit loads, breaking code relying on current behaviour. #14918 (open)