Repository activity
40458 results across all weeks
Improving minor heap virtual memory reservation
@silene reported on OCaml discuss [1] that switching Rocq to OCaml 5 uses far more virtual memory than OCaml 4. OCaml 5 initially reserves 256 MB (caml_params->max_domains * caml_minor_heap_max_wsz where caml_params->max_domains is 128 and caml_minor_heap_max_wsz is 2 MB by default). Rocq sets the minor heap size to 256MB, which OCaml 5 interprets, correctly…
KC Sivaramakrishnan (@kayceesrk)Make Runtime_events.User.write non-allocating
This change alters Runtime_events.User.write to no longer allocate by changing the per-domain write-buffer cache for custom events into a single atomic bytes slot in DLS. It replaces a list-based cache accessed via closures (which was causing the allocation per event, see ocaml-multicore/eio#914).
Anil Madhavapeddy (@avsm)Make abstract types defined in structures injective
This is a follow-up to #14982 and #14990.
Jacques Garrigue (@garrigue)Make failure in enforce_current_level a fatal error
Reading #14425, I was surprised to see that enforce_current_level, while being defined inside ctype.ml, creates a fresh variable and uses unify_var just to lower the level to current_level.
Jacques Garrigue (@garrigue)Makefile: fix race with otherlibs str + unix.cmi/.cmx
Without this patch, the openSUSE ocaml package builds would unpredictably vary in hard to reproduce ways.
Bernhard M. Wiedemann (@bmwiedemann)Merge `Dynlink` into a single module
This is an extraction of the first four commits of #13745, following on from https://github.com/ocaml/ocaml/pull/13745#pullrequestreview-2603386477.
David Allsopp (@dra27)Merge `eqtype` with `moregen`
Merge the implementations of eqtype and moregen as proposed in #14364. This PR should be reviewed on top of #14737 and #14738 that reduced the diff between both functions. In the end only one function from both side could not be refactored together easily so both of them were kept.
Samuel Vivien (@samsa1)Move systhreads into the runtime (proof of concept).
This is a draft PR to explore moving the systhreads implementation into the runtime. The division has been ~fictional for a while. Natural next steps (not yet taken) would be:
Nick Barnes (@NickBarnes)Print newline after `Pexp_unreachable` in `Printast`
Some diffs are simple —
David Allsopp (@dra27)Result.all, Option.all for collapsing lists of values
These are two functions which are helpful for "transposing" lists of optional/possibly-erroring values into optional/possibly-erroring lists, e.g., turning a 'a option list into a 'a list option. They differ from something like List.filter in that they are all-or-nothing, either all the values are on the happy path and you get back a list, or you get back No…
Brian Ward (@WardBrian)Support for trunk compilers in ocaml-system in opam
Re-work of the proposal in https://github.com/ocaml/opam-source-archives/pull/52.
David Allsopp (@dra27)Support frame pointers on POWER architecture
This builds on the now-merged POWER CFI support (#14482) to add frame pointers on POWER. I've tested on the Ubuntu 24.04 ppc64le platform I've access to, it should work on ppc64 big endian but I don't have access to a test machine for that. I haven't tested the TSAN support as I think there are other PRs like https://github.com/ocaml/ocaml/pull/14302 that ne…
Tim McGilchrist (@tmcgilchrist)Support relocatable cross compilers
This PR make it possible to build relocatable cross compilers. In particular, it allows the call configure --with-relative-libdir TARGET_LIBDIR=... which was explicitly forbidden as setting (a merged host and target) libdir twice.
shymSwitch the required autoconf to 2.72
Addressing #14937. See also previous discussions in #11294.
David Allsopp (@dra27)The expansiveness check should consider effect cases
The expansiveness check rightly rejects
Jeremy Yallop (@yallop)Unify returns result rather than raising an exception
I have noticed that almost all calls to unify are directly wrapped inside an exception handler. The cases where we don't have a direct exception handler are the exception that most of the time just expect the unification to never fail.
Samuel Vivien (@samsa1)Weak.get_copy: copying continuations is unsafe, so don't copy them.
It's not generally safe to copy continuations. However, Weak.get_copy shallow-duplicates continuations, which can lead to program crashes. Here's an example program:
Jeremy Yallop (@yallop)`Fatal error: exception Ctype.Unify(_)` when buiding dolmen
I hit a typechecker crash on current trunk (cfb301) while building dolmen v0.10. The compiler fails with no source location: _unknown_, line 1, characters 0-0. The bug seems to be a regression since it does not occur on 5.4.1 or 5.5.0-beta1 (d8bb46).
Eduardo Souza (@udesou)`Uchar.to_char` contains a (latin1) trap
I recently wrote code similar to this:
copycomballoc: emit a single add after a combined allocation
Hi,
agrn