Bug 6611

Summary: add assertions to check correct use of hash table iterators
Product: WebKit Reporter: Darin Adler <darin>
Component: WebKit Misc.Assignee: Darin Adler <darin>
Status: RESOLVED FIXED    
Severity: Enhancement CC: mjs
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
add new CHECK_HASHTABLE_ITERATORS, make iterator wrap const iterator andersca: review+

Darin Adler
Reported 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.
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+
Darin Adler
Comment 1 2006-01-17 03:18:46 PST
Created attachment 5736 [details] add new CHECK_HASHTABLE_ITERATORS, make iterator wrap const iterator
Anders Carlsson
Comment 2 2006-01-17 15:55:21 PST
Comment on attachment 5736 [details] add new CHECK_HASHTABLE_ITERATORS, make iterator wrap const iterator r=me
Note You need to log in before you can comment on or make changes to this bug.