Repository activity
40458 results across all weeks
Fix indexing of byte-element bigarrays by a truncated nativeint/int64
Since #4428, [tag_int] strips sign extensions from its argument (via [low_bits]) because they do not affect the tagged value. As a consequence, [Tag_imm (Num_conv naked_nativeint -> naked_immediate x)] is emitted as [(x << 1) + 1] where [x] is the raw 64-bit value.
Xavier Clerc (@xclerc)Fix redundant kind annotation on file_descr
immediate mod contended portable is just immediate, oops
Aspen Smith (@glittershark)Fix some layouts in translcore (including poly variant + or_null bug)
Transl was providing the wrong layout to transl_exp for polymorphic variant arguments (and to Llet in one place), this fed all the way through to flambda where it miscompiles matches on polymorphic variants containing or_null as it thinks it's non_nullable.
Jack Rickard (@Skepfyr)Fix: strictly_local should enforce locality on the alloc mode
This PR fixes a bug where expected_mode.strictly_local would enforce locality on the closure mode itself, rather than the allocation mode that now lies below it: alloc_mode < (Alloc.proj_comonadic Areality closure_mode).
ainageorgesFixup jkind annotation checking for `[@@unboxed]` records and variants
This PR fixes three different kind bugs in typedecl.ml related to [@@unboxed] records and variants. Both these bugs are present only when checking a declaration against its annotation. This is because when an unboxed record/variant is actually used, a codepath in ctype.ml unboxes the types rather than relying on the kinds stored in the declarations.
Liam Stevenson (@liam923)Follow the relation variables and function parameters
We want to know when the speculative inlining is probably useful. For that we want to track the relation between the arguments and their uses. This is a first step for tracking that relation.
Pierre Chambart (@chambart)Force make to notice when the runtime changes
At present, if I change a runtime file and then make install (or whatever) then the runtime changes don't make it into the rebuild. I complained to Claude and it made this plausible fix, which needs review from someone who understands the history of the Dune/Make interactions.
Nick Barnes (@NickBarnes)Forward `[@inlined]` attribute on stubs
This patch fixes the use of [@inlined] on stubs (in particular functor coercions, but also other stubs such as [@unboxable] functions and different kinds of partial applications).
Basile Clément (@bclement-ocp)Functional mode polymorphism
Integrates all the level-relation operations into type inference to support mode polymorphism. Mode polymorphic variables are functional, and can be printed behind a dedicated extension flag (see below).
ainageorgesFunctors are affected by modalities
Let functors (and module aliases) be affected by modalities, both explicitly annotated and default. Apply the same logic we have for value declarations. However, do not change the code for modules.
dkalinichenko-jsFuzzer MVP
Add fuzzer MVP. Currently only contains a random program generator with a small subset of OxCaml.
hwasilewskijsGet rid of useless [let x = x] bindings from dataflow
These have been annoying me for a while and I finally stumbled upon the place where they are generated, so, they are gone now.
Basile Clément (@bclement-ocp)Guard pages on ARM64
Adding guard pages (and therefore --disable-stack-checks) to ARM64.
Nick Barnes (@NickBarnes)Harden and document `Cfg_simplify` and its contracts
Follow-ups from a correctness review (by Fable) of backend/cfg/cfg_simplify.ml:
Xavier Clerc (@xclerc)Implement atomic pointer primitives
Implement the following new primitives operating on atomic pointers:
Joe Kerrigan (@joe-kerrigan)Import annotation provenance into Merlin
Summary
Gavin Gray (@gavinleroy)Improve codegen for `load; tag; zero-extend`
Done by preferring tag (x & n) to tag x & tag n.
James Rayman (@jra4)Improve runtime events during opportunistic GC work.
We currently don't generate runtime events appropriately during opportunistic GC work, because each spin wait may run many very small slices, and each generates several events, so the runtime events ring buffer was flooded with them. Prior to this PR, it was possible to turn on these events by setting the GC log level SLICE bit. IMO that was an ugly hack.
Nick Barnes (@NickBarnes)In the Reaper, rewrite code metadata in advance of rebuilding
This PR includes commits from #6992 and #7030.
Miriam Vellacott (@mirivella)Include Merlin binaries in the compiler install
This PR is still far from being ready for review. I'm only creating it to get CI to run.
Liam Stevenson (@liam923)