Thicket thicket
ocaml
REPOS 27
SEARCH THE ARCHIVE

Repository activity

40458 results across all weeks

  1. IssueW47.2026 · 16–22 Novocaml/ocaml

    Dangling minor heap pointer in a shallow fiber's effect handler after a nested `perform`

    Ethan Chou (@echoumcp1)
  2. Pull requestW47.2026 · 16–22 Novocaml/ocaml

    Darken ephemeron data after a key store during marking

    Fixes #15288.

    KC Sivaramakrishnan (@kayceesrk)
  3. IssueW47.2026 · 16–22 Novocaml/ocaml

    Data races in per-object state in `CamlinternalOO`

    Dear OCaml maintainers,

    Nathan Taylor (@dijkstracula)
  4. Pull requestW47.2026 · 16–22 Novocaml/ocaml

    Do not track register usage timestamp when -linscan is set.

    This data is only ever accessed by the add_superpressure_regs function, which is not called when the -linscan register allocation option is set. This fast path can save a lot of time in practice, and this issue was observed in the wild in huge code generated by the Rocq native compiler.

    Pierre-Marie Pédrot (@ppedrot)
  5. Pull requestW47.2026 · 16–22 Novocaml/ocaml

    Document another unsafe use of `Dynarray.unsafe_to_iarray`

    The documentation of this function only mentions concurrency-related unsoundness, but unsafe_to_iarray can also break type safety in a single-domain program through escaping.

    Olivier Nicole (@OlivierNicole)
  6. IssueW47.2026 · 16–22 Novocaml/ocaml

    Documented finalisation order is not kept across domains

    The finalisation order that gc.mli documents is not kept when the values are finalised by different domains.

    KC Sivaramakrishnan (@kayceesrk)
  7. IssueW47.2026 · 16–22 Novocaml/ocaml

    Does arm64 need an acquire fence before atomic RMWs?

    The arm64 codegen emits no acquire fence before an atomic read-modify-write, while Atomic.get on the same location does:

    KC Sivaramakrishnan (@kayceesrk)
  8. IssueW47.2026 · 16–22 Novocaml/ocaml

    Domain.at_exit callbacks can run more than once

    Domain.at_exit handlers run twice for the same domain when do_at_exit runs more than once:

    KC Sivaramakrishnan (@kayceesrk)
  9. IssueW47.2026 · 16–22 Novocaml/ocaml

    Domain.at_exit can lose callbacks between systhreads

    Domain.at_exit drops callbacks when two systhreads on one domain register them concurrently. It reads the domain-local callback chain, allocates a closure and stores the new chain back, with no CAS (domain.ml:239-244). The two threads can interleave at the allocation or at the DLS.set call, and the second store drops the first thread's callback. Stdlib.at_ex…

    KC Sivaramakrishnan (@kayceesrk)
  10. Pull requestW47.2026 · 16–22 Novocaml/ocaml

    Dummy float-array blocks must not be created with a scannable tag

    Dummy blocks which are going to become float-arrays must not be allocated with a scannable tag, as this can cause them to be scanned when overwritten by their final initialized blocks. The included test can SEGV crash if run vigorously enough.

    Nick Barnes (@NickBarnes)
  11. IssueW47.2026 · 16–22 Novocaml/ocaml

    Dynarray.blit accepts an overflowing source region

    Dynarray.blit does not reject an invalid source region when src_pos + len overflows, and leaves the destination corrupted when the copy then fails:

    KC Sivaramakrishnan (@kayceesrk)
  12. Pull requestW47.2026 · 16–22 Novocaml/ocaml

    Dynarray.blit: reject overflowing source regions

    Fixes #15258.

    Durwasa Chakraborty (@durwasa-chakraborty)
  13. IssueW47.2026 · 16–22 Novocaml/ocaml

    Dynarray.sort on floats writes doubles into pointer slots

    Dynarray.sort passes the backing array to Array.stable_sort_sub (dynarray.ml:1254-1263). That array is non-flat, as the dynarray invariant requires, but the temporary inside the sort is made with make l2 (get a base) (array.ml:472), and caml_array_make returns a flat float array when the initialiser is a boxed float (array.c:264-273). The merge then blits be…

    KC Sivaramakrishnan (@kayceesrk)
  14. IssueW47.2026 · 16–22 Novocaml/ocaml

    Dynlink drops a DLL opened by another domain

    When two domains load bytecode plugins that carry stub DLLs, a load can fail with The external function ... is not available although its DLL was opened.

    KC Sivaramakrishnan (@kayceesrk)
  15. Pull requestW47.2026 · 16–22 Novocaml/ocaml

    Eliminate `open Config` and `open Clflags`

    Following up https://github.com/ocaml/ocaml/pull/15310#pullrequestreview-5916081953, I've defrosted two commits from my freezer (originals were pre-AI; they've been mechanically updated by Claude).

    David Allsopp (@dra27)
  16. IssueW47.2026 · 16–22 Novocaml/ocaml

    Ephemeron data left unmarked after a key store during marking

    A key store on an ephemeron during marking can leave its data unmarked while the ephemeron and all of its keys are alive. The debug runtime fails an assertion in caml_ephe_clean, and the release runtime returns a dangling data value.

    KC Sivaramakrishnan (@kayceesrk)
  17. IssueW47.2026 · 16–22 Novocaml/ocaml

    Ephemeron data of a dead key returned during the sweep

    Obj.Ephemeron.get_data can return the data of an ephemeron whose key is dead, if another domain is cleaning the ephemeron at the same time. In the debug runtime this trips the assertion at weak.c:193.

    KC Sivaramakrishnan (@kayceesrk)
  18. IssueW47.2026 · 16–22 Novocaml/ocaml

    Event.gensym can give two wrap_abort nodes the same id

    With several domains polling events, Event.wrap_abort sometimes does not run the abort action of a branch that was not chosen.

    KC Sivaramakrishnan (@kayceesrk)
  19. IssueW47.2026 · 16–22 Novocaml/ocaml

    Failed domain startup hangs or crashes in the minor GC

    When the new domain's backup thread cannot be created, the domain is already in the stop-the-world participant set, and the failed startup path can hang or crash the process in the minor GC instead of raising Sys_error from Domain.join.

    KC Sivaramakrishnan (@kayceesrk)
  20. Pull requestW47.2026 · 16–22 Novocaml/ocaml

    Faster minor GC

    This is a rewrite of the hot code in the minor GC, the function oldify_one (and, to some extent, oldify_mopup). Basically the fast path through oldify_one is now all inlined, does not touch global variables, and shared_heap.c makes the major heap free lists available to an inlined function in shared_heap.h, so that in the common case the minor GC can allocat…

    Nick Barnes (@NickBarnes)