Repository activity
40458 results across all weeks
Add a lifecycle event for child process creation (EV_PROCESS_CREATE)
The motivation is a consumer that wants to follow OCaml processes created from a parent process. For example using runtime events for an OCaml program that uses Unix.fork. The consumer API is pid-addressed. create_cursor : (string * int) option -> cursor takes a directory and a pid, and the C side builds <dir>/<pid>.events and opens it (runtime_events_consum…
Tim McGilchrist (@tmcgilchrist)Allow arbitrary patterns on the right-hand side of `as` patterns
Currently, OCaml alias patterns only allow a variable on the right-hand side of as:
Michał Kosior (@crqch)Avoid unsafe reliance on GADT equations in generated field-reading code
The following program compiles on trunk without warnings
Jeremy Yallop (@yallop)Bound recursive closure name before converting its body
Disclaimer: code is written by AI then reviewed by me. This PR body is drafted by me.
Yihang "Corvo" Liu (@glyh)Bound the custom event payload by the buffer's own constant
This is a minor bug fix on top of @sadiqj's https://github.com/ocaml/ocaml/pull/15119
Tim McGilchrist (@tmcgilchrist)Bulk operations on float arrays, with a NEON exemplar on arm64
Hello!
Zane Hambly (@Zaneham)Bytecode: `Effect.perform` segfaults when an asynchronous callback grows the fiber stack during the continuation allocation
OCaml 5.4.0, x86_64 Linux.
Alperen Keleş (@alpaylan)Concurrent ocamlyacc parsers can crash
Two ocamlyacc parsers running on different domains can read each other's token payloads at the wrong type and segfault. Reproduced on 5.5.0 and trunk f0c1023333, macOS arm64.
KC Sivaramakrishnan (@kayceesrk)Constant array indices can bypass native bounds checks
Native array access at index 2^54 returns the first element instead of raising Invalid_argument. Found with DeepSeek v4.1 Flash 1017. Reproduced on 5.5.0 and trunk f0c1023333, macOS arm64:
KC Sivaramakrishnan (@kayceesrk)Data races in per-object state in `CamlinternalOO`
Dear OCaml maintainers,
Nathan Taylor (@dijkstracula)Do not use movzx on amd64 for compare
Currently, on amd64, we use the sequence cmp, setCC, movzx for integer comparisons that need to be materialized.
Stefan Muenzel (@smuenzel)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)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)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)Enable runtime events tests on Windows
Minor rewriting of the tests to use Unix.createProcess rather than Unix.fork, otherwise the functionality is the same. Needed https://github.com/ocaml/ocaml/pull/15186 to fix a Windows lseek bug.
Tim McGilchrist (@tmcgilchrist)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)Fix #15160, #15244, segfaults on array index in native code
The test are generated with claude, the fix is generated by me.
Stefan Muenzel (@smuenzel)Fix TSan support on POWER bonus two runtime bug fixes
Fixes the exn_from_c_stack_args failure and the unw_step abort reported in #14605. Supersedes #14302, whose approach this replaces, though the diagnosis and the TSan bracketing of caml_c_call_stack_args both come from @miodvallat and @OlivierNicole's work there, thanks.
Tim McGilchrist (@tmcgilchrist)Fix write to ring hang in runtime events
Fixes #15043.
Tim McGilchrist (@tmcgilchrist)GCC 14.4 broke C++ support with the Cygwin backend
similarly to https://github.com/ocaml/ocaml/issues/13541, upgrading to the latest GCC 14.4 from the Cygwin Packages repository now leads to a mangled _ZTH10caml_state symbol in the binary and a failure to link the resulting executable.
Kate (@kit-ty-kate)