Repository activity
40458 results across all weeks
Failed domain startup hangs or crashes in the minor GC
When the new domain's backup thread cannot be created, the domain is already in the stop-the-world participant set, and the failed startup path can hang or crash the process in the minor GC instead of raising Sys_error from Domain.join.
KC Sivaramakrishnan (@kayceesrk)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)Finaliser called on a value that is still reachable
A function registered with Gc.finalise can be called on a value that has been reachable ever since it was registered.
KC Sivaramakrishnan (@kayceesrk)Fix #14374: pattern matching is exhaustive in the case of gadt indexed by non-overlapping closed polymorphic variants
gasche
Alex1005aFix #15306 by checking for O_APPEND before pwrite
Stefan Muenzel (@smuenzel)Fix String.take_first, String.take_last and String.drop_last around min_int
Fixes #15248.
Prakhand Patel (@Shivaay19)Fix TSan support on POWER bonus two runtime bug fixes
Fixes the exn_from_c_stack_args failure and the unw_step abort reported in #14605. Supersedes #14302, whose approach this replaces, though the diagnosis and the TSan bracketing of caml_c_call_stack_args both come from @miodvallat and @OlivierNicole's work there, thanks.
Tim McGilchrist (@tmcgilchrist)Fix Windows Unix DLL imports for temporary-directory helpers
Mark the runtime temporary-directory helpers with CAMLextern to prevent FlexDLL RELOC_REL32 errors when loading the Unix DLL on MinGW64. Fixes a regression introduced in #13450, also present in 5.6, using the patch from melange-re/melange#2190.
Antonio Nuno Monteiro (@anmonteiro)Fix `BUILD_MAP_CFLAGS` on FreeBSD
Fixes a typo in #14244 picked up in https://github.com/oxcaml/oxcaml/pull/7792#discussion_r4539554871
David Allsopp (@dra27)Fix infinite loop in -dsource
Fix two issues in -dsource:
Nicolás Ojeda Bär (@nojb)Fix lldb test (different libc symbols)
Should be squashed before merging
Stefan Muenzel (@smuenzel)Fix the backtrace of Stack_overflow raised by caml_call_realloc_stack
On arm64, RISC-V, POWER and s390x, a Stack_overflow raised by caml_call_realloc_stack has an empty backtrace, as noted for arm64 in #12277.
Tim McGilchrist (@tmcgilchrist)Fix two minor memory leaks
Two little memory leaks spotted by address sanitizer jobs in oxcaml/oxcaml#7791 and oxcaml/oxcaml#7792.
David Allsopp (@dra27)Fixed Hashtbl.filter_map_inplace leaving the table inconsistent on raise
The current algorithm to map and then filter inplace calls a helper function which does this operation for each bucket of the Hashtable array, which is where the bug lies called filter_map_inplace_bucket.
ButteryPawsGenerative constructors
This PR introduces generative constructors. In short, generative constructors are effectful immutable constructors that can neither be shared nor unshared.
clef-menHead shapes and constructor unboxing
This PR implements a variant of the "constructor unboxing" feature proposed by Jeremy Yallop (@yallop) in RFC #14 in March 2020, which extends the current [@@unboxed] annotation for single-constructor variant types (or single-field record types). A first experimental implementation of this feature was done Nicolas Chataing (@nchataing) in Summer 2021. I reba…
Gabriel Scherer (@gasche)Implicit source positions
See ocaml/RFCs#52.
Olivier Nicole (@OlivierNicole)Improving ASAN tracking of OOB accesses for mmap()-ed regions in the C runtime
It is desirable to make out of bounds accesses always trap when run under the address sanitizer, especially for testcases.
Török Edwin (@edwintorok)Instance variable lifting
This PR is my latest attempt at fixing the expected but disappointing behaviour reported in #14861.
Vincent Laviron (@lthls)Lost ephemeron marking round at the end of `mark`
A domain can lose an ephemeron round at the end of mark (), leaving an ephemeron with a marked key and unmarked data that no round rescans. The debug runtime asserts in caml_ephe_clean, and the release runtime gives the mutator data that the next cycle frees.
KC Sivaramakrishnan (@kayceesrk)