Features
-
Int.popcount,Int.leading_zeros,Int.trailing_zerosbecome%popcount/%clz/%ctzprimitives. arm64 emits native instructions; all backends gain speedup over prior OCaml-level code. (#15018) -
Gc.check_rootsaborts the runtime on a corrupted root; GDBocaml rootsreports the registration site of a damaged root. (#15027) -
ocamldebug
REQ_GET_HEADERnow transmits the full 64-bit object header, correcting array sizes for objects exceeding 2²² words. May require earlybird patches. (#15022)
Fixes
-
Merged.
Marshal.from_stringandMarshal.from_channelreject data whereheader_len + data_lenoverflows, closing an ineffective bounds check. Backported to 4.14. (#15019, #15030) -
Merged. Runtime-events ring-buffer file size is now
size_twith an overflow check. Previouslye=21,d=128triggered 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.selectproduced 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)