Bug 854051 - Remove HashTable::clearWithoutCallingDestructors; r=billm

This commit is contained in:
Terrence Cole
2013-03-25 11:48:26 -07:00
parent e2e5fa0ca3
commit 0d2a9c840b
4 changed files with 3 additions and 37 deletions

View File

@@ -373,11 +373,6 @@ WeakMap_finalize(FreeOp *fop, RawObject obj)
{
if (ObjectValueMap *map = GetObjectMap(obj)) {
map->check();
/*
* The map may contain finalized entries, so drop them before destructing to avoid calling
* ~EncapsulatedPtr.
*/
map->clearWithoutCallingDestructors();
#ifdef DEBUG
map->~ObjectValueMap();
memset(static_cast<void *>(map), 0xdc, sizeof(*map));