Repository activity
40458 results across all weeks
truncated error message with Emacs+Merlin on OCaml 5.04 and v5.7.1-504
Repro case:
Gabriel Scherer (@gasche)#14898: lambda/Translcore, do not trust GADT equations introduced by a partial match
This PR fixes the miscompilation reported by #14898 by making sure that the translation to Lambda.t do not use local GADTs equations introduced on a partial match to compute the kind of function parameters.
Florian Angeletti (@Octachron)A thread that never yields starves the other threads of its domain on Windows (regression in 5.5.0)
On Windows, an OCaml thread that does not yield voluntarily keeps the runtime lock indefinitely, and the other threads of its domain never run. Not slowly — not at all, for as long as it keeps computing. Thread.yield still hands over correctly; what stops working is the preemptive handoff the tick thread asks for every 50ms.
Daniel Larraz (@daniel-larraz)Add Atomic.compare_and_exchange
As suggested in #14889, I added the compare_and_exchange function in Atomic :
JeannalyseAdd Domain.max_domains to expose the configured maximum domain count
Expose the runtime's configured maximum number of domains via a new Domain.max_domains function. This value is set by the d parameter of OCAMLRUNPARAM (defaulting to 128 on 64-bit and 16 on 32-bit platforms).
Tim McGilchrist (@tmcgilchrist)Add missing EV_MINOR_EPHE_CLEAN constructor to runtime_phase
The runtime has emitted this phase since 5.4 (#13643), when a minor collection has to clean locked ephemerons, but the OCaml type had no constructor for it, so consumers were handed an out-of-range value and crashed when matching on it.
Tim McGilchrist (@tmcgilchrist)Add new runtime-events test
Yesterday when messing around with runtime-events, I added a new event type and forgot to update otherlibs/runtime-events. The punishment for this mistake was, I feel, unduly harsh: the testsuite passed, but a later commit that began to use the event during GC segfaulted deep into test_compact.ml in a way that took a while to understand.
Stephen Dolan (@stedolan)Add runtime events for direct major allocations and GC ramp-up
This (now) adds three counters and one span to runtime events.
Tim McGilchrist (@tmcgilchrist)Added parsing support for M.true and M.false
Implement the fix proposed in #13245 that is allowing finishing a path with true or false.
Samuel Vivien (@samsa1)Adding support for native dynlink on x64_haiku
Adding support for native dynlink on x64_haiku
Anarchos (@Sylvain78)Allow using constructors as builder functions
This is a very preliminary PR, for discussion (no test, etc).
Alain Frisch (@alainfrisch)Bit counting as C primitives, with clz and ctz emitted on amd64 and arm64
Hello,
Zane Hambly (@Zaneham)Bytecode loading: guard against overflow in `caml_read_section_descriptors`
Not sure this can be exploited by a malicious bytecode executable with an unreasonable number of section descriptors, but better be safe.
Xavier Leroy (@xavierleroy)CI: stop testing on macos x86_64
macOS 27 (~~just~~ soon to be released) removes all support for x86, incl. Rosetta emulation.
Xavier Leroy (@xavierleroy)Emit fsqrt for square root on power
Hiya,
Zane Hambly (@Zaneham)Emit the rounding instructions for Float.round, Float.trunc, ceil and floor on arm64 and power
Hello,
Zane Hambly (@Zaneham)Enable KVM for faster Android emulation in CI
GitHub's larger Linux runners support running hardware accelerated emulators. See the Android Emulator Runner Action (https://github.com/reactivecircus/android-emulator-runner#running-hardware-accelerated-emulators-on-linux-runners), this snippet is taken straight from the readme. This saves about 40s of run time in the cross-x86_64-linux-android21 CI job, s…
Antonin Décimo (@MisterDA)Fix handling of backup thread on Win32
The first commit contains a minimal fix for #15028: the field .backup_thread which is supposed to maintain a reference to the backup thread handle is in fact invalid under Windows because the backup thread is detached after creation using CloseHandle. When this invalid handle is passed to caml_plat_thread_equal, it returns -1 which was being interpreted as a…
Nicolás Ojeda Bär (@nojb)Fix minor_allocated_bytes conversion.
Should use Wsize_bsize(minor_allocated_bytes) to convert bytes to words.
Tim McGilchrist (@tmcgilchrist)Fix two bugs in the Win32 implementation of `Unix.select`
This PR fixes two related bugs in the Win32 implementation of Unix.select, in the custom path used when the arguments contain non-socket descriptors.
Nicolás Ojeda Bär (@nojb)