Bug 1175147 - Don't do threadsafety asserts for NPN_MemAlloc and friends, r=jimm

This commit is contained in:
Benjamin Smedberg
2015-06-16 12:04:04 -04:00
parent 9c08fcc756
commit 78fdfc9617

View File

@@ -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);
}