Repository activity
40458 results across all weeks
add tests for Fatal error: exception Invalid_argument("Ppxlib.Longident.parse(empty string)
This is a test to reproduce Fatal error: exception Invalid_argument("Ppxlib.Longident.parse(empty string)
PixieDust (@PizieDust)add tests for cache hits and misses
This pr adds some tests for #2139
PixieDust (@PizieDust)fix #1786, fail to load module in `case-analysis`
with_cmis was missing.
Xavier Van de Woestyne (@xvw)ocaml-index: add --files-from to read input files from a file
Summary
Kostia Balytskyi (@ikostia)Add Gc.phase to check the current state of the GC
This is something I discussed yesterday with @damiendoligez: some bugs (like the one reported in #12481) are tricky to reproduce, as they involve an OCaml program of a specific shape interacting with the GC in a very specific state.
Vincent Laviron (@lthls)Add a test measuring GC mark, sweep, promotion and compaction speeds
Ported from oxcaml/oxcaml#7161, adapted to this runtime's events and GC logging, plus a minor-collection promotion-rate measurement.
Nick Barnes (@NickBarnes)Add runtime-events counters for per-slice sweep and mark work
Add a couple of per-slice runtime events, reporting the amount of sweep and mark work done during a major GC slice. This will enable GC rate measurement to be done entirely from the runtime events stream (e.g. in another process): see #15280.
Nick Barnes (@NickBarnes)Add support for powerpc64*-unknown-freebsd
Add support to configure to powerpc* on FreeBSD.
Piotr Kubaj (@pkubaj)Always advance work counter in idle slices
With the GC idle phase, it's possible for non-allocating small-heap programs to get stuck such that a loop calling Gc.major_slice won't advance the GC. This PR makes it so that any idle slice advances the work counter and so will eventually get out of the idle phase.
Nick Barnes (@NickBarnes)Always keep names
Previously, the copy functions in the type system could operate with keep_names:true (in which case type variable names are preserved) or with keep_names:false (in which case type variable names are forgotten). In other work I'm doing, I wanted to keep some more names, and so I wondered: why not keep all the names? So I've tried this.
Richard Eisenberg (@goldfirere)BUILD_PATH_PREFIX_MAP does not handle absolute paths.
Support for BUILD_PATH_PREFIX_MAP was added in https://github.com/ocaml/ocaml/pull/1515 however it does not handle absolute paths for reasons I find rather weak.
Daniel Bünzli (@dbuenzli)Bytepackager: relocate the events and hints of the pack code
When building a pack, the bytecode packager appends the code of the packed units, then compiles the code of the pack itself (building the pack module from its components, and applying the coercion to the pack interface if there is one). The relocations of this last piece of code are shifted by the size of the packed units, but its debugging events and optimi…
Jérôme Vouillon (@vouillon)Check for printf failures in caml_alloc_sprintf(_l)
Fixes #15251
Prakhand Patel (@Shivaay19)Darken ephemeron data after a key store during marking
Fixes #15288.
KC Sivaramakrishnan (@kayceesrk)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)Document the memory of fiber stacks in Effect and Gc.stat
I was chasing a slow memory growth in an application built on an effect-based scheduler. The process kept growing while Gc.quick_stat and memtrace reported a small, flat heap.
Romain Beauxis (@toots)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)Dynarray.blit: reject overflowing source regions
Fixes #15258.
Durwasa Chakraborty (@durwasa-chakraborty)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)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)