Repository activity
40458 results across all weeks
Add Stdlib.Char.Ascii.is_punct
Add Stdlib.Char.Ascii.is_punct, which behaves like ispunct from the C standard library: https://en.cppreference.com/c/string/byte/ispunct.
Benoit (@benjub)Add Uchar.{is_ascii,ascii_to_char,is_latin1,latin1_to_char}
Fixes #14962.
copyAdd Unix.nonblock_single_write and Unix.nonblock_read
This function are around 30% faster when avoiding the copying which is necessary if one release the global lock.
Christophe Raffalli (@craff)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)Custom runtime events are behaving randomly when used in fast paced environments
Last week I decided to see what was possible to do with custom runtime events.
Mattias (@mattiasdrp)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 endbr64 instructions on amd64 to support OpenBSD indirect branch target control flow enforcement.
A previous PR (https://github.com/ocaml/ocaml/pull/12918) set the linker arg nobtcfi when building on OpenBSD. This PR adds in usage of the endbr64 instruction to allow dropping that linker arg and supporting this type of control flow enforcement on OpenBSD and any other platforms that adopt it. A separate commit in the PR drops the linker arg.
Dave Voutila (@voutilad)Emit fsqrt for square root on power
Hiya,
Zane Hambly (@Zaneham)Emit fsqrt.d for square root on riscv
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)Generate native atomic exchange and compare-and-set across all architectures
G'day!
Zane Hambly (@Zaneham)Generate native square root and byte swap on s390x
Hello,
Zane Hambly (@Zaneham)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 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)Re-implement weak hashsets using open-addressing with linear probing.
The Weak.Make module of the standard library provides "weak hashsets", sets of elements that are only kept alive if something else in the program keeps them alive. The typical use-case is to implement hash-consing: whenever building a new term, look for an equivalent term that would already be in the hashset and use it instead, increasing memory sharing. Has…
Gabriel Scherer (@gasche)Remove unneeded line continuations between C string literals
Contiguous C string literals are concatenated by the compiler, thus the line continuation isn't necessary. In the case of the runtime event snippet, all the leading spaces of the second line were added to the error message.
Antonin Décimo (@MisterDA)Smaller code for stack reallocation on AMD64
On AMD64, when we reallocate the stack:
Stefan Muenzel (@smuenzel)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)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)amd64: Emit endbr64 only where it matters
Adds Intel CET support for x86-64 by emitting endbr64 landing pads at indirect branch targets.
Zane Hambly (@Zaneham)