|
|
@@ -622,7 +622,7 @@ private:
|
|
|
bool reentrancySafeOrHandled;
|
|
|
bool isInReentrancySafeRegion;
|
|
|
|
|
|
- AllocationPolicyManager * allocationPolicyManager;
|
|
|
+ AllocationPolicyManager * allocationPolicyManager;
|
|
|
|
|
|
JsUtil::ThreadService threadService;
|
|
|
#if ENABLE_NATIVE_CODEGEN
|
|
|
@@ -856,6 +856,11 @@ public:
|
|
|
|
|
|
AllocationPolicyManager * GetAllocationPolicyManager() { return allocationPolicyManager; }
|
|
|
|
|
|
+ // used for diagnosing abnormally high number of closed, but still formally reachable script contexts
|
|
|
+ // at the time of failfast due to allocation limits.
|
|
|
+ // high number may indicate that context leaks have occured.
|
|
|
+ uint closedScriptContextCount;
|
|
|
+
|
|
|
#if ENABLE_NATIVE_CODEGEN
|
|
|
PreReservedVirtualAllocWrapper * GetPreReservedVirtualAllocator() { return &preReservedVirtualAllocator; }
|
|
|
#if DYNAMIC_INTERPRETER_THUNK || defined(ASMJS_PLAT)
|
|
|
@@ -1879,6 +1884,7 @@ private:
|
|
|
virtual bool ThreadContextRecyclerTelemetryHostInterface::IsThreadBound() const;
|
|
|
virtual DWORD ThreadContextRecyclerTelemetryHostInterface::GetCurrentScriptThreadID() const;
|
|
|
virtual bool IsTelemetryProviderEnabled() const;
|
|
|
+ virtual uint GetClosedContextCount() const;
|
|
|
|
|
|
private:
|
|
|
ThreadContext * tc;
|