Repository activity
40458 results across all weeks
Gradual reservation of minor heap adresses
This PR proposes a fix for #14153 . Instead of reserving minor-heap address space for 128 domains at once, it start by reserving enough address space for 1 domain, then 8, 16, 32, 64, etc. This is useful for programs that want to use large minor heaps, and run in environments that refuse large address space reservations. (Apparently Rocq is hit by this limit…
Gabriel Scherer (@gasche)Hashtbl.filter_map_inplace can leave a negative length
Hashtbl.filter_map_inplace decrements size before the cell is unlinked, so a raise from f leaves length smaller than the number of bindings still in the table:
KC Sivaramakrishnan (@kayceesrk)Head shapes and constructor unboxing
This PR implements a variant of the "constructor unboxing" feature proposed by Jeremy Yallop (@yallop) in RFC #14 in March 2020, which extends the current [@@unboxed] annotation for single-constructor variant types (or single-field record types). A first experimental implementation of this feature was done Nicolas Chataing (@nchataing) in Summer 2021. I reba…
Gabriel Scherer (@gasche)Implicit source positions
See ocaml/RFCs#52.
Olivier Nicole (@OlivierNicole)Improve `CAMLthread_local` definition for C/C++ interoperability
For symbols with external linkage, care must be taken for C++ interoperability.
Antonin Décimo (@MisterDA)Improve handling of stupidly large input files in the backend
This PR makes some of the key backend passes tail-recursive, at least in the Iop case.
Vincent Laviron (@lthls)Lazy.Mutexed.force leaks its mutex on an asynchronous exception
Lazy.Mutexed.force leaves the mutex locked if an asynchronous exception arrives after the thunk has returned, so the value is lost and the lazy is permanently wedged.
KC Sivaramakrishnan (@kayceesrk)Make Seq.cycle create a cyclic sequence
Make Seq.cycle create a cyclic sequence rather than an infinite sequence.
Jeremy Yallop (@yallop)Make warning 8 (partial-match) fatal by default in ocamlc and ocamlopt
Fixes https://github.com/ocaml/ocaml/issues/12475
Kate (@kit-ty-kate)Mapped bigarrays serialize but cannot be read back
A bigarray returned by Unix.map_file can be marshalled, but reading the result back raises Failure. Found with DeepSeek v4.1 Flash 1017. On 5.5.0, macOS arm64:
KC Sivaramakrishnan (@kayceesrk)Mark stack is not empty when the last domain terminates
When the last domain terminates with an ephemeron whose live data exceeds the 100,000-word force-alive budget, the debug runtime aborts in caml_teardown_major_gc.
KC Sivaramakrishnan (@kayceesrk)Multiple ephemeron bug fixes
This is a port of oxcaml/oxcaml#7876 which resulted from an adversarial agentic review of the ephemeron code (done after porting recent ephemeron fixes from OCaml to OxCaml in oxcaml/oxcaml#7874). Of the problems found, these four also affect OCaml. Apologies for the verbosity of this PR description (which I have tried to keep brief); the code changes are mu…
Nick Barnes (@NickBarnes)New GC-pacing logic
This is the implementation of https://github.com/damiendoligez/gc-pacing .
Damien Doligez (@damiendoligez)No thread preemption in a child after fork
In a program that has already started a thread, Unix.fork leaves the child unable to switch threads:
KC Sivaramakrishnan (@kayceesrk)OCaml 4.14.5
Bug fixes release with 6 security fixes, and 2 ordinary bug fixes:
Florian Angeletti (@Octachron)POWER: convert int<->float with direct VSX moves instead of memory
Hello!
Zane Hambly (@Zaneham)POWER: read a single CR field with mfocrf when materializing a compare
Hello!
Zane Hambly (@Zaneham)POWER: use subf instead of subfc for subtraction and modulo
Hello!
Zane Hambly (@Zaneham)Private Dynlink load hides a nested public load
A bytecode plugin loaded with Dynlink.loadfile_private can load another plugin publicly. The nested initialiser runs, but a later plugin cannot resolve its globals. This reproduces on trunk f0c1023333, macOS arm64. Found with the assistance of an LLM.
KC Sivaramakrishnan (@kayceesrk)Record update reads `[@atomic]` fields with a plain load
A record update copies an [@atomic] field with a plain load, while a direct read of the same field is atomic:
KC Sivaramakrishnan (@kayceesrk)