Bug 1156317 - Change the onOutOfMemory() interface is make it harder to misuse r=terrence
This commit is contained in:
@@ -11,9 +11,9 @@
|
||||
using namespace js;
|
||||
|
||||
void*
|
||||
TempAllocPolicy::onOutOfMemory(void* p, size_t nbytes)
|
||||
TempAllocPolicy::onOutOfMemory(AllocFunction allocFunc, size_t nbytes, void* reallocPtr)
|
||||
{
|
||||
return static_cast<ExclusiveContext*>(cx_)->onOutOfMemory(p, nbytes);
|
||||
return static_cast<ExclusiveContext*>(cx_)->onOutOfMemory(allocFunc, nbytes, reallocPtr);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user