Bug 6611 - add assertions to check correct use of hash table iterators
Summary: add assertions to check correct use of hash table iterators
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Enhancement
Assignee: Darin Adler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-17 03:17 PST by Darin Adler
Modified: 2006-01-17 20:32 PST (History)
1 user (show)

See Also:


Attachments
add new CHECK_HASHTABLE_ITERATORS, make iterator wrap const iterator (44.23 KB, patch)
2006-01-17 03:18 PST, Darin Adler
andersca: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Adler 2006-01-17 03:17:29 PST
If you use an iterator for a hash table after that hash table has been modified, bad things can happen.

We can add assertions to catch those cases in the debugger.
Comment 1 Darin Adler 2006-01-17 03:18:46 PST
Created attachment 5736 [details]
add new CHECK_HASHTABLE_ITERATORS, make iterator wrap const iterator
Comment 2 Anders Carlsson 2006-01-17 15:55:21 PST
Comment on attachment 5736 [details]
add new CHECK_HASHTABLE_ITERATORS, make iterator wrap const iterator

r=me