Bug 1257387 - Move OOM callback annotation to the common runtime for workers; r=mccr8
This commit is contained in:
@@ -539,6 +539,10 @@ CycleCollectedJSRuntime::Initialize(JSContext* aParentContext,
|
||||
JS_SetSweepZoneCallback(mJSContext, XPCStringConvert::ClearZoneCache);
|
||||
JS::SetBuildIdOp(mJSContext, GetBuildId);
|
||||
JS::SetWarningReporter(mJSContext, MozCrashWarningReporter);
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
js::AutoEnterOOMUnsafeRegion::setAnnotateOOMAllocationSizeCallback(
|
||||
CrashReporter::AnnotateOOMAllocationSize);
|
||||
#endif
|
||||
|
||||
static js::DOMCallbacks DOMcallbacks = {
|
||||
InstanceClassHasProtoAtDepth
|
||||
|
||||
Reference in New Issue
Block a user