Bug 885758 - Add ExclusiveContext for use by threads with exclusive access to their compartment, r=billm.

This commit is contained in:
Brian Hackett
2013-07-10 09:29:52 -06:00
parent de771854ed
commit d5a61ab0f3
95 changed files with 1935 additions and 1464 deletions

View File

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