Repository navigation
test(ets): cover separately built map and numeric keys - #87
Merged
Merged
Conversation
This change only adds a test; it does not change how ETS works. The test inserts a row, rebuilds its key, and checks that native Nera and BEAM both find the row.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
ETS once missed rows when a program looked them up with an equal map, float, or big integer built separately.
What changed
Before and after
Before: The original native probe missed five equal keys; the earlier closure-equality fix restored all five.
After: One test now checks 24 hits and 24 misses across set, bag, and duplicate_bag tables on both runtimes.
There is no screen change; the lookup results are recorded as text.
Checked
Live validation: Demonstrated for this version. 2 of 2 scenarios driven live in the product.
How it was checked
Built the release compiler and runtime; ran strict lint, the workspace tests, the allocator check, the native fixture suite, and the stack trace check.
Compiled the regression on OTP 29 with warnings treated as errors.
Risk
Risk: low in every dimension.
Full risk assessment