Bug 885758 - Add ExclusiveContext for use by threads with exclusive access to their compartment, r=billm.
This commit is contained in:
@@ -13,11 +13,11 @@ using namespace js;
|
||||
void *
|
||||
TempAllocPolicy::onOutOfMemory(void *p, size_t nbytes)
|
||||
{
|
||||
return cx_->runtime()->onOutOfMemory(p, nbytes, cx_);
|
||||
return static_cast<ThreadSafeContext *>(cx_)->onOutOfMemory(p, nbytes);
|
||||
}
|
||||
|
||||
void
|
||||
TempAllocPolicy::reportAllocOverflow() const
|
||||
{
|
||||
js_ReportAllocationOverflow(cx_);
|
||||
js_ReportAllocationOverflow(static_cast<ThreadSafeContext *>(cx_));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user