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

compiler: Try to keep the generated code more deterministic #7643

Merged
merged 2 commits into from
Feb 15, 2025

Conversation

ogoffart
Copy link
Member

Use BTreeMap instead of HashMap when possible.

I wanted to make a test for it by running the compiler twice in the cpp driver test, but that's failing because we use static COUNT atomic variable in several places to get unique ids.
We should find another way to get unique ID that's more deterministic. This should still be deterministic when using different processes.

Although there are still some source of non determinism so this doesn't close the issue #7642

@ogoffart ogoffart requested a review from tronical February 15, 2025 15:42
@ogoffart ogoffart merged commit 7c75720 into master Feb 15, 2025
38 checks passed
@ogoffart ogoffart deleted the olivier/fix-#7642 branch February 15, 2025 17:53
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.

2 participants