Repository activity
40458 results across all weeks
Fix evaluation order of values used as field of an allocation with flambda
There is a bug with flambda (both flambda2 and flambda1) that can mix up the order of evaluation of values used as fields of an allocation (see https://github.com/oxcaml/oxcaml/pull/7562 for the flambda2 fix).
Guillaume Bury (@Gbury)Fix for OSEC-2026-26
Custom events maintains a cache of user events, it is possible to have a corrupt stream that has a valid message with one message type (which can be custom/unit/span/int) and then has the same event with a different message type.
Sadiq Jaffer (@sadiqj)Fix temporary register overlap for atomic ops in linscan
The atomic operations (from https://github.com/ocaml/ocaml/pull/14980 and https://github.com/ocaml/ocaml/pull/14575 ) need special handling in the register allocator. In particular, the result registers cannot overlap with the argument registers.
Stefan Muenzel (@smuenzel)Fix untagging of x asr 63 and x lsr 63 in native code
Fixes #15157. Int64.of_int (x asr 63) and x lsr 63 were compiled as a shift by 64, which amd64 treats as a shift by 0, so you got the tagged value back. I clamped the asr to 63 and made lsr 63 return zero, so both stay a single instruction instead of just dropping the fold. Tested on amd64 and arm64 with the CI flags, new test in basic/shift_untag.ml fails o…
Zane Hambly (@Zaneham)Fix write to ring hang in runtime events
Fixes #15043.
Tim McGilchrist (@tmcgilchrist)Gc.heap_words is inaccurate (pool_freelist.free is unaccounted for)
On OCaml 5.5.1 memory usage reported by the OS (e.g. as RSS) can be a lot higher than memory reported by Gc.heap_words * word_size.
Török Edwin (@edwintorok)Improve handling of stupidly large input files in the backend
This PR makes some of the key backend passes tail-recursive, at least in the Iop case.
Vincent Laviron (@lthls)Improve typing error messages for Duplicate_constructor and Duplicate_label
This PR is a continuation of work in #15120.
Michał Kosior (@crqch)OCaml 5.5.2
This patch release contains several security fixes:
Florian Angeletti (@Octachron)Parallel Sys calls may cause a hang
When extending the Sys tests in multicoretests I've encountered that executing parallel tests may cause such tests to hang indefinitely on macOS.
Jan Midtgaard (@jmid)Preserve possible injectivity in variance composition
Fix #15142 in Variance.compose when the outer parameter may be invariant
Demetrios Chiuratto Agourakis (@agourakis82)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)Revert "Merge pull request #14996 from MisterDA/autoconf-2.72-C++"
This reverts commit a878eccb92cd95f96e9436e7b4958ecde3426563, reversing changes made to e20578d84c4920797d5c0875d20da20eb6950ff1, due to the build being broken when there is no C++ toolchain available. See https://github.com/ocaml/ocaml/pull/14996#issuecomment-6374908326.
Olivier Nicole (@OlivierNicole)Runtime_events producer: missing bounds check on user event write
The following segfaults:
Török Edwin (@edwintorok)Scanf.unescaped: handle missing escapes
The function Scanf.unescaped is supposed to implement, at runtime, the same conventions that the lexer implements at compile-time. However, currently, it did not support the full set of escapes that are supported by the lexer. This PR rectifies this:
Nicolás Ojeda Bär (@nojb)Size the runtime_events ring path buffer in char_os
Give the path its own bound in char_os, scale the allocation by sizeof(char_os), and report a path that does not fit rather than truncating it silently.
Tim McGilchrist (@tmcgilchrist)Total matches with redundant cases containing or and when clauses may cause fatal error
Note: these examples were found with claude
Stefan Muenzel (@smuenzel)[v2] configure: use Autoconf support for detecting the C++ compiler
Re-landing of #14996 after it was reverted in #15193.
Antonin Décimo (@MisterDA)`ocamlopt -linscan` miscompiles `Atomic.compare_and_set` on amd64
Alperen Keleş (@alpaylan)configure: use Autoconf support for detecting the C++ compiler
The C++ compiler detection is currently only enabled when ocamltest is enabled. We re-use the C compiler front-end by passing the -xc++ option of GCC and Clang to make sure the same toolchain is used for C and C++.
Antonin Décimo (@MisterDA)