Features
-
Relocatable OCaml (RFC 53): Four open PRs (#14243–#14246) add
--with-relative-libdir,--enable-suffixing, and--enable-runtime-searchtoconfigure, plusocamlcoptions-launch-methodand-runtime-search. Bytecode executables receive version-suffixed names to disambiguate multiple installations. -
include functor (PR #14177): Open proposal adding
include functor Fas a structure item, applying a single-parameter functor to the current module. Multi-parameter functors are rejected with an error. -
Module mismatch hints (PR #14330): Open PR adding "close match" hints to signature-mismatch errors when a misspelled identifier closely resembles a required one.
-
OCaml RFC #37 (uniform arrays): Open proposal for specialized built-in and C primitives for uniform arrays plus a
CamlinternalUniform_arraystandard-library module to simplify unsafe array idioms. #37
Compatibility
- Unix C API (PR #14310): Merged deprecation of
union sock_addr_unionandsocklen_param_typein favour ofstruct sockaddr_storageandsocklen_t, with a C11_Genericmacro preserving source compatibility.
Fixes
-
GC work accounting (PRs #14329, #14336): Merged fixes align major-GC work counters with pacing:
caml_darkenmarking counts toward the slice, free blocks are excluded from sweep work, and ephemeron marking drops a quadratic walk term. -
Runtime race fix (PR #14337): Merged fix for a segfault when a continuation allocated during
caml_callbackis promoted by a minor collection and then dropped, leaving a stale return address visible to compaction. -
caml/osdeps.h(PR #14342): Merged fix making the header self-standing by moving<caml/misc.h>and<caml/memory.h>includes outside theCAML_INTERNALSguard, restoring compilation for stubs that include onlyosdeps.h. -
Memprof segfault (Issues #14340, #14341): Open reports of segfaults when calling
Printexc.backtrace_slotsor writing runtime events from memprof callbacks at high sampling rates, reproduced on OCaml 5.3.0 and 5.4.0.