Initialize statics in OnSemaphoreCreated so that we get data about locks created before any locks are locked. (Bug 594666) r=cjones

This commit is contained in:
L. David Baron 2011-03-29 08:43:23 -07:00
parent 6cab898bcf
commit 824bb18705

View File

@ -196,6 +196,9 @@ static nsNamedVector* GetVector(PLHashTable* table, const void* key)
/* static */ void
nsAutoLockBase::OnSemaphoreCreated(const void* key, const char* name )
{
if (LockStackTPI == PRUintn(-1))
InitAutoLockStatics();
if (key && OrderTable) {
nsNamedVector* value = new nsNamedVector(name);
if (value) {