Core covers the OCaml compiler and language RFCs.
Core repository summaries
1 active · 1 unchanged
ocaml/ocaml
PermalinkFeatures
Compatibility and Releases
Fixes
- Merged:
Atomic.exchangeandAtomic.compare_and_setnow emit native instructions (xchg, cmpxchg, amoswap, etc.) for immediate values on all five backends. Single-domain exchange drops from 1.36 s to 0.51 s on amd64. (#14980) - Merged: the bytecode compiler caches
getcwdonce per source file instead of per debug event. On macOS this cuts system time by roughly 80 % for large bytecode builds. (#15140) ocamloptmiscompilesasr 63andlsr 63when the result is immediately untagged (e.g. viaInt64.of_int), producing wrong values. The bug dates to 1999; no fix PR is open yet. (#15157, open)- A soundness bug in variance composition lets a bivariant parameter inside an invariant GADT parameter escape invariance, enabling
Obj.magic-equivalent unsoundness. PR #15165 proposes a stricter check. (#15142, open) - A race between
Gc.finalise_lastand the minor GC can cause segfaults or heap corruption when a domain finalises a young value from another domain. PR #15153 promotes cross-domain values before the barrier. (#15152, open) - Merged:
Seq.ints_in_rangeno longer overflows for ranges ending atmax_int. Cherry-picked to 5.6. (#15173)