Closed Bug 1372875 Opened 3 years ago Closed 3 years ago
Table::Add Ptr's mutation count is not checked
HashTable::AddPtr has a mutation count which is presumably there so we can check that the table has not changed since lookupForAdd was called, but this check is missing.
Patch to check generation and mutation count in HashTable:add and generation in remove and rekeyWithoutRehash methods. Also increment generation when hash table is rehashed in place. None of these asserts failed in a try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=7501bac95a0aac586212c11f502be790e285d979&selectedJob=107008453
Attachment #8877609 - Flags: review?(luke)
Pushed by email@example.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/f71a1645c218 Add more assertions for hash table pointer generation and mutation count r=luke
You need to log in before you can comment on or make changes to this bug.