[Webkit-unassigned] [Bug 16918] ASSERTION FAILED: !HashTranslator::equal(KeyTraits::emptyValue(), key)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jan 18 03:57:44 PST 2008
http://bugs.webkit.org/show_bug.cgi?id=16918
john.ripley at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |john.ripley at gmail.com
------- Comment #1 from john.ripley at gmail.com 2008-01-18 03:57 PDT -------
I'm having the same assertion, in a different place. This is due to
HashMap/HashTable not allowing key values 0 or -1 for integer->* maps. They are
reserved as the "empty" and "deleted" bin values.
In my case, NPN_GetIntIdentifier uses HashMap<int32, NPIdentifier> to associate
integer keys with unique NPIdentifiers (actually PrivateIdentifier*). When a
plugin asks for an NPIdentifier associated with 0 or -1, it will assert. I'm
currently working around this by remapping the incoming int32 values to uint64
and setting bit 32, thus avoiding values 0 or -1.
It's a silly workaround. Can we make HashMap stop using special values for
integer keys?
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list