Repository activity
40458 results across all weeks
Extract Utf8_lexeme out of Misc into utils/utf8_lexeme.ml(i)
I mentioned this (among other things) to @Octachron the other day, and he seemed open to the idea, so here goes.
Thomas Refis (@trefis)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 handling of backup thread on Win32
The first commit contains a minimal fix for #15028: the field .backup_thread which is supposed to maintain a reference to the backup thread handle is in fact invalid under Windows because the backup thread is detached after creation using CloseHandle. When this invalid handle is passed to caml_plat_thread_equal, it returns -1 which was being interpreted as a…
Nicolás Ojeda Bär (@nojb)Fix two bugs in the Win32 implementation of `Unix.select`
This PR fixes two related bugs in the Win32 implementation of Unix.select, in the custom path used when the arguments contain non-socket descriptors.
Nicolás Ojeda Bär (@nojb)Fixes #14765.
OlivierNicole
Olivier Nicole (@OlivierNicole)Guideline for LLM usage in bug reports
As suggested in #14842, this PR proposes to add few paragraph in the AI guideline to recommend not mixing LLM-generated inside bug report.
Florian Angeletti (@Octachron)Implicit source positions
See ocaml/RFCs#52.
Olivier Nicole (@OlivierNicole)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)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)POWER fix assembler errors when offset exceeds a 16-bit immediate
POWER D-form and DS-form loads and stores, addi and li all take a 16-bit signed immediate. The frame-management code emitted stack offsets straight into that field, so a function whose frame exceeds 32 KB produces operands the assembler rejects:
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)Runtime events spam during full major collection
(Text drafted with Claude, repro code is mine, all tests and data hand verified)
Nikos Gorogiannis (@ngorogiannis)Setting space_overhead has no effect on memory allocated by Marshal.from_channel on OCaml 5.x
The following test case creates a large-ish file containing marshalled data (10MiB) then read it it again. It prints heap_words before and after the read.
Kate (@kit-ty-kate)Support relocatable cross compilers
This PR make it possible to build relocatable cross compilers. In particular, it allows the call configure --with-relative-libdir TARGET_LIBDIR=... which was explicitly forbidden as setting (a merged host and target) libdir twice.
shymSys_error exception in Format.flush_standard_formatters
A bit of a minor issue, but I encountered some exceptions in the at_exit functions that flush standard file descriptors.
Olivier Andrieu (@oandrieu)Unmarshaling: guard against overflow when computing header_len + data_len
Corrupted or malicious marshaled data could trigger an overflow in the computation of the total size of the marshaled data (header_len + data_len), making some bounds checks ineffective.
Xavier Leroy (@xavierleroy)Unmarshaling: guard against overflow when computing header_len + data_len (4.14 backport)
Backport of #15019 to the 4.14 maintenance branch.
Xavier Leroy (@xavierleroy)[Win32] `Unix.select` raises "select.c: original file handle not found"
When developing a network application using eio_windows (which uses Unix.select in Windows backend), I noticed this failure is raised occasionally: https://github.com/ocaml/ocaml/blob/2e29548dfc89f3e182cb683db09da1ea7976e6d5/otherlibs/unix/select_win32.c#L915-L916
张睿 Zhang Rui (@z-rui)`perf` profiling in 4.14 and 5.0: calls to GC misattributed?
I wanted to profile some programs using perf, and I observed some strange behaviour on OCaml 5. Switching to OCaml 4, the number seemed more reasonable.
Paul-Elliot Anglès d'Auriac (@panglesd)