зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1121760 (part 5) - Remove PL_DHashMarkTableImmutable(). r=poiru.
--HG-- extra : rebase_source : 8617d7f3d8034832321145789cc0108f6a0878df
This commit is contained in:
Родитель
ecf0b741cd
Коммит
63e79d16db
|
@ -109,8 +109,8 @@ nsHTMLEntities::AddRefTable(void)
|
|||
entry->node = node;
|
||||
}
|
||||
#ifdef DEBUG
|
||||
PL_DHashMarkTableImmutable(gUnicodeToEntity);
|
||||
PL_DHashMarkTableImmutable(gEntityToUnicode);
|
||||
gUnicodeToEntity->MarkImmutable();
|
||||
gEntityToUnicode->MarkImmutable();
|
||||
#endif
|
||||
}
|
||||
++gTableRefCnt;
|
||||
|
|
|
@ -147,7 +147,7 @@ nsStaticCaseInsensitiveNameTable::nsStaticCaseInsensitiveNameTable(
|
|||
entry->mIndex = index;
|
||||
}
|
||||
#ifdef DEBUG
|
||||
PL_DHashMarkTableImmutable(&mNameTable);
|
||||
mNameTable.MarkImmutable();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -282,7 +282,7 @@ public:
|
|||
*/
|
||||
void MarkImmutable()
|
||||
{
|
||||
PL_DHashMarkTableImmutable(&mTable);
|
||||
mTable.MarkImmutable();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -853,16 +853,10 @@ PLDHashTable::Iterator::Remove()
|
|||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
MOZ_ALWAYS_INLINE void
|
||||
void
|
||||
PLDHashTable::MarkImmutable()
|
||||
{
|
||||
mChecker.SetNonWritable();
|
||||
}
|
||||
|
||||
void
|
||||
PL_DHashMarkTableImmutable(PLDHashTable* aTable)
|
||||
{
|
||||
aTable->MarkImmutable();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -620,9 +620,4 @@ PL_DHashClearEntryStub(PLDHashTable* aTable, PLDHashEntryHdr* aEntry);
|
|||
const PLDHashTableOps*
|
||||
PL_DHashGetStubOps(void);
|
||||
|
||||
#ifdef DEBUG
|
||||
void
|
||||
PL_DHashMarkTableImmutable(PLDHashTable* aTable);
|
||||
#endif
|
||||
|
||||
#endif /* pldhash_h___ */
|
||||
|
|
Загрузка…
Ссылка в новой задаче