-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes consistency issues in the AliasCache. (#433)
Fixes consistency issues in the AliasCache. - Makes sure that when the AliasCache adds a new mapping for (id, alias) then the id also gets checked in idMap, not just the alias in aliasMap. This avoids the situation where two different alias might be registered for the same ID. - Runs the Alias Cache consistency test after each modification when running under GTEST. - Removes RESERVED_ALIAS_NODE_ID because that created exactly this situation. - Adds helper functions to generate a reserved alias node ID that is different for each alias, by using a range of invalid Node IDs. - Updates existing code and tests that were depending on RESERVED_ALIAS_NODE_ID. - Adds missing braces to the consistency check function. === * Fixes consistency issues in the AliasCache. - Makes sure that when the AliasCache adds a new mapping for (id, alias) then the id also gets checked in idMap, not just the alias in aliasMap. This avoids the situation where two different alias might be registered for the same ID. - Runs the Alias Cache consistency test after each modification when running under GTEST. - Removes RESERVED_ALIAS_NODE_ID because that created exactly this situation. - Adds helper functions to generate a reserved alias node ID that is different for each alias, by using a range of invalid Node IDs. - Updates existing code and tests that were depending on RESERVED_ALIAS_NODE_ID. * Fix whitespace * Adds missing braces.
- Loading branch information
1 parent
e1b0c2d
commit 1060956
Showing
9 changed files
with
249 additions
and
112 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.