Bug 1175147 - Don't do threadsafety asserts for NPN_MemAlloc and friends, r=jimm
This commit is contained in:
@@ -1329,17 +1329,12 @@ void
|
||||
_memfree(void* aPtr)
|
||||
{
|
||||
PLUGIN_LOG_DEBUG_FUNCTION;
|
||||
// Only assert plugin thread here for consistency with in-process plugins.
|
||||
AssertPluginThread();
|
||||
free(aPtr);
|
||||
}
|
||||
|
||||
uint32_t
|
||||
_memflush(uint32_t aSize)
|
||||
{
|
||||
PLUGIN_LOG_DEBUG_FUNCTION;
|
||||
// Only assert plugin thread here for consistency with in-process plugins.
|
||||
AssertPluginThread();
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1398,8 +1393,6 @@ void*
|
||||
_memalloc(uint32_t aSize)
|
||||
{
|
||||
PLUGIN_LOG_DEBUG_FUNCTION;
|
||||
// Only assert plugin thread here for consistency with in-process plugins.
|
||||
AssertPluginThread();
|
||||
return moz_xmalloc(aSize);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user