Skip to content

Fix nondeterministic outputs of pdl compiler#148

Merged
hchataing merged 1 commit intogoogle:mainfrom
spandandas-2:nondeterminism_java_output
Jan 19, 2026
Merged

Fix nondeterministic outputs of pdl compiler#148
hchataing merged 1 commit intogoogle:mainfrom
spandandas-2:nondeterminism_java_output

Conversation

@spandandas-2
Copy link
Contributor

Due to unordered traversal of HashMap, the generated java code is non deterministic. This is bad from the perspective of build systems, since it causes unnecessary rebuilds if the iteration order changes.

This CL switches a data structure to BTreeMap to fix the non determinism

Due to unordered traversal of HashMap, the generated java code is non
deterministic. This is bad from the perspective of build systems, since
it causes unnecessary rebuilds if the iteration order changes.

This CL switches a data structure to BTreeMap to fix the non determinism
@hchataing hchataing self-requested a review January 19, 2026 09:09
@hchataing hchataing enabled auto-merge (rebase) January 19, 2026 09:15
@hchataing hchataing disabled auto-merge January 19, 2026 09:16
@hchataing hchataing merged commit 908176b into google:main Jan 19, 2026
7 checks passed
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