mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
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:
parent
6cab898bcf
commit
824bb18705
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user