mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 753659: Make refcounting threadsafety assertions fatal. r=bsmedberg
This commit is contained in:
parent
b7dbdde7ab
commit
d8f4b237fb
@ -15,6 +15,7 @@
|
||||
#endif
|
||||
|
||||
#include "nsXPCOM.h"
|
||||
#include "mozilla/Assertions.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#include "prprf.h"
|
||||
@ -347,12 +348,9 @@
|
||||
|
||||
#ifdef XPCOM_GLUE
|
||||
#define NS_CheckThreadSafe(owningThread, msg)
|
||||
#elif defined MOZ_FATAL_ASSERTIONS_FOR_THREAD_SAFETY
|
||||
#define NS_CheckThreadSafe(owningThread, msg) \
|
||||
NS_ABORT_IF_FALSE(owningThread == PR_GetCurrentThread(), msg)
|
||||
#else
|
||||
#define NS_CheckThreadSafe(owningThread, msg) \
|
||||
NS_ASSERTION(owningThread == PR_GetCurrentThread(), msg)
|
||||
MOZ_ASSERT(owningThread == PR_GetCurrentThread(), msg)
|
||||
#endif
|
||||
|
||||
/* When compiling the XPCOM Glue on Windows, we pretend that it's going to
|
||||
|
Loading…
Reference in New Issue
Block a user