Bug 1156317 - Change the onOutOfMemory() interface is make it harder to misuse r=terrence

This commit is contained in:
Jon Coppeard
2015-04-21 16:08:39 +01:00
parent 1389458c23
commit b67705613a
8 changed files with 52 additions and 39 deletions

View File

@@ -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