Repository activity
40458 results across all weeks
Confine tick requests to one domain
Domain.Tick.t is supposed to represent a tick request on a particular domain, but currently you can acquire it on one domain and release it on another. There are two issues: first, it crosses portability, and second, you can suspend and resume the current fiber between the acquire and release.
Max Slater (@TheNumbat)Constant folding for -Oclassic mode
The -Oclassic optimiser setting doesn't do any constant folding, so simple examples involving computed constants are not compiled well:
Stephen Dolan (@stedolan)DO NOT REVIEW -- Demo: intentionally degrade frontend type hashing for regression detection
Demonstration-only change for testing a compiler performance-regression detector we're working on; not intended for production or merging upstream. Force all type-expression hash keys into one bucket while leaving equality unchanged.
Joe Kerrigan (@joe-kerrigan)DRAFT: Split lifted-constant tracking flags for functors and functions
Split -flambda2-speculative-inlining-track-lifted-constants into independent -for-functors and -for-functions flags. Both default to off and support -no- forms and OCAMLPARAM settings.
Zesen Qian (@riaqn)DRAFT: Warn when inlining decisions deviate from the ideal configuration
Add opt-in warning 222 (inlining-deviates-from-ideal) for functor applications whose inlining decision differs from the ideal configuration: lifted-constant tracking enabled for functors, plus the configured ideal large-functor size. Ordinary-function tracking and actual inlining behavior remain unchanged. Diagnostics report the current and ideal costs or si…
Zesen Qian (@riaqn)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)Datalog optimizations
(On top of #7289.)
Xavier Clerc (@xclerc)Discard memtrace callbacks after shutdown
Memtrace will occasionally throw the following after tracing single-threaded code:
Will Sturgeon (@wrsturgeon)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)Eliminate module blocks for better link-time DCE with `-gc-sections`
Vibe-coded proof of concept
Luke Maurer (@lukemaurer)Emit per-field module-block cells alongside the module block
Vibe-coded proof of concept
Luke Maurer (@lukemaurer)Enable mode polymorphism for benchmarking demo
Jack Rickard (@Skepfyr)Export Flambda 2 information for units with no final typing environment
This PR tweaks how typing information is stored in .cmx files in preparation for link-time optimization. Previously, a unit whose top-level module startup code does not return would not emit the normal data (i.e., the identifier table, and the code and offsets reachable from the module symbol) into .cmx files. It does now and only emits the typing environmen…
Simon Spies (@spiessimon)Fix CFG CSE soundness issues around clobbers and GC representations
This pull requests fixes a couple of issues found while
Xavier Clerc (@xclerc)Fix Linux LLDB debugger tests; run the ARM64 one in CI
We should test oxcaml-lldb on ARM64; the workflows weren't fetching it and the tests weren't testing it.
Nick Barnes (@NickBarnes)Fix META files
Fix installed metadata for compiler and bundled libraries
Jacob Van Buren (@jvanburen)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)Fix functional update of records with >= max_young_wosize fields
{ r with f = x } on a record with at least Config.max_young_wosize (256) fields silently returns the old value of f.
tkoukpariFix module inclusion check for aliases
Add a missing(?) Env.normalize_module_path None env path to the code for reductions on module aliases so we get the right module type.
dkalinichenko-jsFix principality check for mode crossing
The is_principal check is true when the compiler is not running in principal more, or (before this PR) if is at generic_level. This check is used by crossing_of_ty; specifically, the crossing is set to Crossing.max if we are not principal.
Zack Eisbach (@zackbach)