File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1140,11 +1140,12 @@ Func::IsAggressiveIntTypeSpecDisabled() const
11401140 return (HasProfileInfo () && GetReadOnlyProfileInfo ()->IsAggressiveIntTypeSpecDisabled (IsLoopBody ())) || m_output.IsAggressiveIntTypeSpecDisabled ();
11411141}
11421142
1143- bool Func::CanAllocInPreReservedHeapPageSegment ()
1143+ bool Func::CanAllocInPreReservedHeapPageSegment ()
11441144{
11451145#ifdef _CONTROL_FLOW_GUARD
11461146 return PHASE_FORCE1 (Js::PreReservedHeapAllocPhase) || (!PHASE_OFF1 (Js::PreReservedHeapAllocPhase) &&
1147- !IsJitInDebugMode ()
1147+ !IsJitInDebugMode () && GetThreadContextInfo ()->IsCFGEnabled ()
1148+ // && !GetScriptContext()->IsScriptContextInDebugMode()
11481149#if _M_IX86
11491150 && m_workItem->GetJitMode () == ExecutionMode::FullJit
11501151
You can’t perform that action at this time.
0 commit comments