Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the way we test and verify allocation consistency #292

Merged
merged 2 commits into from
Jan 7, 2025

Conversation

davidlattimore
Copy link
Owner

No description provided.

The motivation for this change is that `are_flags_valid` is hard to get right
and hard to keep up-to-date. The plan is to delete it and the test that depends
on it - `test_resolution_allocation_consistency`. However, when inconsistent
allocations occur, it can be hard to figure out what combination of flags
caused the inconsistent allocation. So we reuse the consistency checking
mecanism used by the test from the linker proper, but only when an environment
variable is set. When we detect an inconsistency at write-time, we now suggest
setting this environment variable to get more info.
See previous commit for motivation.
@davidlattimore davidlattimore merged commit 7d3a5f9 into main Jan 7, 2025
13 checks passed
@davidlattimore davidlattimore deleted the push-wnsqmyolpykt branch January 15, 2025 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant