mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 02:09:28 +00:00
testing theory that unmatched atomic increment/decrement is causing occasional tinderbox failures. See bug 126087.
This commit is contained in:
parent
9b4ba3f354
commit
55b154c58d
@ -286,9 +286,7 @@ PK11_FreeSymKey(PK11SymKey *symKey)
|
||||
PK11SymKey *
|
||||
PK11_ReferenceSymKey(PK11SymKey *symKey)
|
||||
{
|
||||
PK11_USE_THREADS(PZ_Lock(symKey->refLock);)
|
||||
symKey->refCount++;
|
||||
PK11_USE_THREADS(PZ_Unlock(symKey->refLock);)
|
||||
PR_AtomicIncrement(&symKey->refCount);
|
||||
return symKey;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user