Optional polymorphic parameters in function signatures, e.g. let f (?x: 'a. 'a -> 'a) () = (). Merged 2026-10-01. #14985
Bytecode .cmo files now carry hints for immediate-value reads and variant-type tests, usable by downstream bytecode compilers such as wasm_of_ocaml. Merged 2026-10-02. #15122
Compatibility and Releases
The instrumented runtime is no longer compiled by default. Complete removal is planned after the 5.6 branch. Merged 2026-10-01. #15117
A follow-up PR proposes removing the instrumented runtime code entirely, including the ?alloc and EV_ALLOC event paths. Open. #15130
Fixes
The pattern-matching compiler no longer uses GADT equations from a single row to classify shared record fields as immediate, preventing unregistered GC roots. Merged 2026-09-30. #15114
Three security fixes merged 2026-09-29: Unix.map_file overflow guard (OSEC-2026-22), Str.string_partial_match invalid captured groups (OSEC-2026-21), and Marshal demarshaling issues (OSEC-2026-23). #15112#15113#15115
Int64.of_float, Int64.to_float, and Int32/Nativeint equivalents now compile to native instructions instead of C calls, roughly doubling throughput on amd64. Merged 2026-09-29. #15084
s390x now permits unaligned memory accesses, eliminating byte-at-a-time sequences in Bytes.get_int64 and similar operations. Merged 2026-09-28. #15090