Repository activity
40458 results across all weeks
DRAFT: introduce Compilation_unit_intf to identify interfaces
A reduced version of #6785. Refactors cross-file references so that interfaces and implementations have distinct identities:
Zesen Qian (@riaqn)Deduplicate contents of continuation handlers
Note: This is a quick proof of concept for #6751; it is experimental (notably we likely want a better hash function on primitives) and not intended to be merged as is.
Basile Clément (@bclement-ocp)Disable oclassic and make all symbols global for LTO
These are not ideal for the final version but hopefully they make it work for now!
Miriam Vellacott (@mirivella)Disable oclassic during LTO
This PR disables the oclassic mode when LTO support is enabled. The reason is that we need the corresponding .cmr files.
Simon Spies (@spiessimon)Disable unboxing and calling convention changes in the reaper when we're doing LTO
Force -no-reaper-unbox and -no-reaper-change-calling-conventions during solve and rebuild. These flags are only ever read inside Unboxing_analysis, which is not used at all during traverse.
Miriam Vellacott (@mirivella)Downstream changes from Merlin that improve the performance of the indexer
This PR downstreams two separate PR from ocaml/merlin that improve the memory management for the indexer: ocaml-index. This work is part of the Tarides proposal about "Indexer memory management".
Tim ats (@Tim-ats-d)Enable layout-any function returns
Follow-up to #6467, based on dkalinichenko/layout-any-return-typing.
dkalinichenko-jsEnable more warnings in cfg_selectgen and its target interface
Drop the -9 from the warning attribute of cfg_selectgen.ml, so that record patterns must mention every field, and add the same +a-4-40-41-42 attribute to cfg_selectgen_target_intf.ml, which had none.
Xavier Clerc (@xclerc)Enable the fragile-match warning in the CFG instruction selectors
Drop the -4 from the warning attributes of cfg_selectgen.ml, cfg_selectgen_target_intf.ml and the amd64 and arm64 cfg_selection.ml, so that catch-all cases in matches over variants are reported.
Xavier Clerc (@xclerc)Evaluate Delta_uleb128 constants generally in the x86 binary emitter
Replaces the exact expression-shape matching for Delta_uleb128 in the x86 binary emitter with a recursive evaluator over the constant language. The sections of operands are tracked, so any assembly-time-constant combination of labels, symbols and integers is accepted, and only differences within a single section (which are link-time invariant) can produce a …
Mark Shinwell (@mshinwell)Exclude test outputs from the XXX check
Exclude .reference, .output and .expected files from "no XXX" CI check (#6662).
Ryan Tjoa (@rtjoa)Expose modality implications for structured diagnostics
Gavin Gray (@gavinleroy)Expose typed mode-error provenance
This PR exposes function to make working with a Mode_hint outside of Mode easier.
Gavin Gray (@gavinleroy)Expose uniqueness errors for structured diagnostics
let dup x = ((x, x) : @ unique)
Gavin Gray (@gavinleroy)Fetch at depth 2 for CI diff checks instead of deepening
The "check" job diffs added lines against HEAD^1, the first parent of
Luke Maurer (@lukemaurer)Fix GC idle phase so that Gc.major_slice() always advances the GC
Since the introduction of the GC idle phase, for some programs, calling Gc.major_slice any number of times, with any slice size, might not advance the GC (without any allocation taking place, the incurred-work counter would not advance, and the completed-work counter would never overtake it, so it might never reach the min_before_mark level and escape the id…
Nick Barnes (@NickBarnes)Fix allocation pointer bug on stack overflow
When we use guard pages to raise Stack_overflow we go from OCaml code, via a SEGV handler and a little asm stub, to caml_raise_stack_overflow. Somewhere on that path we need to save the allocation point register %r15, otherwise recently-allocated values will be allocated over, leading to memory corruption.
Nick Barnes (@NickBarnes)Fix dwarf shapes for unboxed versions of types and `unit#`
We fix two issues:
Ryan Tjoa (@rtjoa)Fix encoding of RIP-relative and sub-word operands in the x86 binary emitter
emit_movsx and emit_MOVZX in the x86 binary emitter code only accepted Mem, Reg8L/Reg8H and Reg16 source operands. A RIP-relative source is represented by the separate Mem64_RIP constructor, so it fell through to assert false.
Mark Shinwell (@mshinwell)Fix flambda2 all-value mixed record length in metadata
When lowering a Pduprecord for all-value mixed record representations, Lambda_to_flambda_primitives.convert_lprim incorrectly uses the number of fields for the Duplicate_block_kind.t's length, rather than the actual size in words. These can differ because such representations can include void and products.
Ryan Tjoa (@rtjoa)