Thicket thicket
ocaml
REPOS 2

Core covers the OCaml compiler and language RFCs.

W35.2026 · 24–30 AugCore

Features

  • Int.popcount, Int.leading_zeros, Int.trailing_zeros become %popcount/%clz/%ctz primitives. arm64 emits native instructions; all backends gain speedup over prior OCaml-level code. (#15018)

  • Gc.check_roots aborts the runtime on a corrupted root; GDB ocaml roots reports the registration site of a damaged root. (#15027)

  • ocamldebug REQ_GET_HEADER now transmits the full 64-bit object header, correcting array sizes for objects exceeding 2²² words. May require earlybird patches. (#15022)

Fixes

  • Merged. Marshal.from_string and Marshal.from_channel reject data where header_len + data_len overflows, closing an ineffective bounds check. Backported to 4.14. (#15019, #15030)

  • Merged. Runtime-events ring-buffer file size is now size_t with an overflow check. Previously e=21,d=128 triggered SIGBUS; e=22+ silently corrupted event names. (#15000)

  • Open. Win32 5.5.0: a non-yielding thread held the runtime lock indefinitely, starving other threads in its domain. Fix corrects an invalid backup-thread handle passed to caml_plat_thread_equal. (#15028, #15029)

  • Open. Win32 Unix.select produced out-of-bounds lookups when a socket appeared in multiple fd lists. Fix replaces positional indices with per-mode handle sets. (#14758, #15025)

  • Open. POWER assembler: frame-management offsets exceeding the 16-bit immediate range now use addis-based sequences. Previously ~6000 locals produced "operand out of range". (#15021)