зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1289252 - gDEBUG_LiveProtoCount does not need to be modified atomically. r=mrbkap
--HG-- extra : rebase_source : 4ed3e3d93f85d964d438d8281c21364315204ec9
This commit is contained in:
Родитель
61202c710a
Коммит
28ba46abc8
|
@ -31,7 +31,7 @@ XPCWrappedNativeProto::XPCWrappedNativeProto(XPCWrappedNativeScope* Scope,
|
|||
MOZ_ASSERT(mScope);
|
||||
|
||||
#ifdef DEBUG
|
||||
PR_ATOMIC_INCREMENT(&gDEBUG_LiveProtoCount);
|
||||
gDEBUG_LiveProtoCount++;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,7 @@ XPCWrappedNativeProto::~XPCWrappedNativeProto()
|
|||
MOZ_COUNT_DTOR(XPCWrappedNativeProto);
|
||||
|
||||
#ifdef DEBUG
|
||||
PR_ATOMIC_DECREMENT(&gDEBUG_LiveProtoCount);
|
||||
gDEBUG_LiveProtoCount--;
|
||||
#endif
|
||||
|
||||
// Note that our weak ref to mScope is not to be trusted at this point.
|
||||
|
|
Загрузка…
Ссылка в новой задаче