Repository activity
40458 results across all weeks
Assure young handlers aren't forgotten between update/continue
If you update a major cont to contain minor handlers, then enter the GC, the handlers will be forgotten.
Max Slater (@TheNumbat)Attach loclists_base and rnglists_base when offset arrays are in use
When -gdwarf-offsets offset arrays are in use, DW_FORM_loclistx and DW_FORM_rnglistx indices are resolved via the offset arrays whose positions the DW_AT_loclists_base and DW_AT_rnglists_base attributes give. These attributes were never attached to the compilation unit DIE, so the indices could not have been resolved. This attaches them. The flag currently h…
Mark Shinwell (@mshinwell)Avoid building location and range list data that is never used
Two small optimisations that avoid constructing DWARF data which nothing references:
Mark Shinwell (@mshinwell)Avoid extra shift+tag when accessing fields through idx_atomic
Addresses internal ticket 7717.
Joe Kerrigan (@joe-kerrigan)Bidirectional type checking for applications
Import ocaml/ocaml#285. Fix some metaprogramming issue?
dkalinichenko-jsBox kinds
Add the box kind constructor. The kind k box indicates the boxed version of a kind k.
Ryan Tjoa (@rtjoa)Build the runtime with dune instead of make
The dune rules in runtime/dune and runtime/caml/dune used to shell out to make -f Makefile.upstream. This PR makes dune build all of these directly, fixing the fact that incremental builds did not relink the compiler binaries after a runtime change. The details seem hacky to me; perhaps a dune expert can improve on it.
Nick Barnes (@NickBarnes)Bump magic numbers for 5.4.0-ox7
Incremented 585 to 586 and ran external/merlin/scripts/update-magic-numbers.sh 586 5.4.0-ox7.
Jack Rickard (@Skepfyr)Bump the actions group with 4 updates
Bumps the actions group with 4 updates: actions/checkout, anthropics/claude-code-action, cachix/install-nix-action and zizmorcore/zizmor-action.
Dependabot (@dependabot)CFG basic operations (refactoring / tightening)
(Only for CI at this point.)
Xavier Clerc (@xclerc)Calculate calling convention changes at solve time
This change moves the code to make decisions on calling convention changes from the start of the Reaper's rebuild phase (Rebuild.rebuild) to the end of it's solve phase (Unboxing_analysis.perform_analysis). The decisions get threaded through as extra fields in Unboxing_analysis.result.
Miriam Vellacott (@mirivella)Calculate slot offsets at solve time
Moves slot offset computation to solve time.
Miriam Vellacott (@mirivella)Check configuration compatibility when reloading saved IR (CFG and linear)
.cmir-linear and .cmir-cfg files bake configuration-dependent code generation decisions into the saved instructions, while later stages consult the configuration of the process that reloads the file: Emit computes frame sizes and stack-slot offsets from
Xavier Clerc (@xclerc)Clean #includes in the runtime
Three commits to improve the hygiene of #includes in the runtime:
Nick Barnes (@NickBarnes)Cmm peepholes for int/bit conversions
Cmm peepholes for int/bit conversions
ttebbi-janestreetCollapse kind-templated closures
Collapse kind templated closures from fun env -> fun args -> body to fun env args -> body. It also bans anything other than a function definition on the right hand side of a let poly_ f =, this is probalby overly strict but it's hard to nail down semantics for anything else and we can always relax this in the future.
Jack Rickard (@Skepfyr)Compile unloadable compilation units
When the new internal flag Clflags.unit_is_unloadable is set, each function gets a Code_block static datum listing its unloadable code and same-unit data dependencies, referenced from a back-pointer emitted just before the function entry. Static data is bracketed between unloadable_blocks_start/end symbols for donation to the major heap, and a sentinel array…
Mark Shinwell (@mshinwell)Continuation_uses_env: refine arg types based on arity
We record continuations with their arity in the Continuation_uses_env, in order to be able to refine the types of the arguments based on the arity of the continuation. This is necessary to restore variant unboxing in some cases.
Nathanaëlle Courant (@Ekdohibs)Correct C stack alignment on stack overflow
The guard page/SEGV/caml_raise_stack_overflow_nat` pathway entered C with C stack mis-alignment. This could crash in TCMalloc (or presumably elsewhere, but it's easy to crash in TCMalloc if the async raise frees a stack which has a local allocation arena).
Nick Barnes (@NickBarnes)Correct wrong layout for `layout_block_idx`
It was incorrectly switched from unboxed int64 to unboxed nativeint in #4582.
James Rayman (@jra4)