Repository activity
40458 results across all weeks
Generate native atomic exchange and compare-and-set across all architectures
G'day!
Zane Hambly (@Zaneham)Improve global roots debugging
Debugging GC roots corruption has always been a pain in the arse and I was recently faced with yet another of those.
Romain Beauxis (@toots)Improve typing error messages for Duplicate_constructor and Duplicate_label
This PR is a continuation of work in #15120.
Michał Kosior (@crqch)Inline the full-application part of caml_apply
Similar to #198, but we structure the code so that the argument loading is not repeated for the caml_apply and full application call, in order to not increase code size too much. This is especially important for functions with many arguments.
Stefan Muenzel (@smuenzel)Intel CET (SHSTK | IBT)
I'd like to be able to protect my code at the level of Intel CET technologies.
vvv0rt3xxxPerformance improvements for large object types in #15163
Note: for discussion only for now. It's too much to merge to 5.6
Stefan Muenzel (@smuenzel)Polymorphic parameters are not documented
Polymorphic parameters were merged but the manual does not document them.
Olivier Nicole (@OlivierNicole)Poor GC behavior on OCaml 5
I recently upgraded Semgrep to OCaml 5. I had to put a fair amount of effort into tuning the GC in order to achieve comparable performance to OCaml 4 (my data suggests that time and memory are both slightly better, but it's within the margin of error). @kayceesrk read my post and became concerned about the behavior of the runtime here, so I am filing an issu…
Nat Mote (@nmote)Preserve possible injectivity in variance composition
Fix #15142 in Variance.compose when the outer parameter may be invariant
Demetrios Chiuratto Agourakis (@agourakis82)Race between `Gc.finalise_last` and the minor GC on a young value of another domain
If a domain calls Gc.finalise_last on a young value of another domain, the minor GC can read freed or reused memory. The result can be a segmentation fault in caml_final_update_last_minor. From code reading, the race is in all versions from OCaml 5.1.0 to trunk.
Bikal Lem (@bikallem)Remove the instrumented runtime
Following on from #15117 for 5.6, this PR removes the instrumented runtime completely. This has been entirely produced by Claude - my input was mostly to bike-shed early deprecation decisions and delete superfluous comments. I've allowed it to pontificate in two areas because I'm open to suggestions as to what to do:
David Allsopp (@dra27)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)Signal handler doesn't run if signal received at the wrong time
When a signal arrives, the C function handle_signal is called, which calls caml_record_signal. This just sets a flag indicating that the corresponding OCaml handler should run at the next opportunity.
Thomas Leonard (@talex5)Test lib-systhreads/test_c_thread_register is flaky under ThreadSanitizer
I haven’t have been able to diagnose further yet, but sometimes under TSan the program exits without having printed the single expected output line:
Olivier Nicole (@OlivierNicole)Total matches with redundant cases containing or and when clauses may cause fatal error
Note: these examples were found with claude
Stefan Muenzel (@smuenzel)Typing recovery, new follow up
A few issues (presumably the last ones for now) that came up while porting Merlin to the new recovery (cc @voodoos).
Xavier Van de Woestyne (@xvw)[@remove_aliases]: keep the aliases inside modules passed to functors (fixes #13979)
Fixes #13979. Related: #13997.
Udaykishore Resu (@udaykishore-resu)`ocamlopt`: Fatal_error Selection.size_expr on a mutable let
Repro
Michael Bacarella (@mbacarella)`ocamlopt`: `asr 63` and `lsr 63` miscompile when result is immediately untagged
Minimal repro
Michael Bacarella (@mbacarella)flambda -O2/-O3: [Project_var] from a value with wrong approximation
Repro
Michael Bacarella (@mbacarella)