Repository activity
40458 results across all weeks
Add `Atomic.compare_and_exchange`
Currently we have the Atomic.compare_and_set primitive. It would be nice to also have Atomic.compare_and_exchange as it also often found as a primitive in the description of multiprocessor algorithms and in other APIs (e.g. C++, guile).
Daniel Bünzli (@dbuenzli)Add a test for float square root
Hello,
Zane Hambly (@Zaneham)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)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)Default to and recommend large file and year 2038 support on 32-bit
Use Autoconf support for widening types related to sizes of files and file systems. Also request the widening of the time_t type as needed to represent timestamps after mid-January 2038 [Y2K38 problem][Y2K38].
Antonin Décimo (@MisterDA)Emit fsqrt for square root on power
Hiya,
Zane Hambly (@Zaneham)Emit fsqrt.d for square root on riscv
Hello,
Zane Hambly (@Zaneham)Emit the fused multiply-add for Float.fma on arm64, power, riscv and s390x
Hello,
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)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)Fix for runtime events corrupt stream failure
Fix for the corrupt stream failure issue identified in https://github.com/ocaml/ocaml/issues/14151
Sadiq Jaffer (@sadiqj)Fix shared library crash on s390x (RHEL/Fedora)
Fixes #13693
Zane Hambly (@Zaneham)Generate native square root and byte swap on s390x
Hello,
Zane Hambly (@Zaneham)Make ring buffer file size a size_t to avoid integer overflow
current_ring_total_size size it holds is max_domains * ring_size_bytes plus headers, which passes 2 GiB at ordinary settings. Make the value a size_t and defensively check whether there will be overflow.
Tim McGilchrist (@tmcgilchrist)RISC-V fix assembler errors when offset exceeds a 12-bit immediate
Two places in the RISC-V backend emit an instruction with a 12-bit immediate whose value is not range-checked. When the value exceeds the signed 12-bit range ([-2048, 2047]), the assembler rejects the instruction and the build fails:
Tim McGilchrist (@tmcgilchrist)Runtime events corrupt stream
Fixes #14151.
Tim McGilchrist (@tmcgilchrist)Runtime events lost words truncation
Changes lost_words from an int to an uint64_t. The lost_events callback reports how far a consumer fell behind, in ring buffer words. The value is computed as a difference of two uint64_t ring positions but the callback takes an int, so it wraps once the gap exceeds INT_MAX, which is quite easy to hit with a modest program.
Tim McGilchrist (@tmcgilchrist)Stdlib: Make `Sys.file_exists` raise `Sys_error` in error cases, instead of returning `false`
The semantics of Sys.file_exists returning false in error cases is imprecise and impractical to deal with. It would be helpful if an appropriate Sys_error was raised in error cases.
sabine (@sabine)Tsan fails when configured with both --enable-flambda and --enable-tsan
Eight tests in tests/tsan fail when flambda and TSan are enabled together. Reproduced on trunk at 0b6f59a110 across ppc64le Linux, amd64 Linux and arm64 macOS:
Tim McGilchrist (@tmcgilchrist)