Skip to content

Commit

Permalink
[1.8>1.9] [MERGE #4647 @agarwal-sandeep] OS#15659337: Try to allocate…
Browse files Browse the repository at this point in the history
… JIT code in PreReservedSegment even if CFG is not enabled

Merge pull request #4647 from agarwal-sandeep:vso15659337

This speeds up stack walking IsNativeAddress checks when CFG is not enabled.
  • Loading branch information
agarwal-sandeep committed Feb 8, 2018
2 parents e4493a2 + 3a6b0fe commit a9a368f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Backend/Func.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1140,12 +1140,11 @@ Func::IsAggressiveIntTypeSpecDisabled() const
return (HasProfileInfo() && GetReadOnlyProfileInfo()->IsAggressiveIntTypeSpecDisabled(IsLoopBody())) || m_output.IsAggressiveIntTypeSpecDisabled();
}

bool Func::CanAllocInPreReservedHeapPageSegment ()
bool Func::CanAllocInPreReservedHeapPageSegment()
{
#ifdef _CONTROL_FLOW_GUARD
return PHASE_FORCE1(Js::PreReservedHeapAllocPhase) || (!PHASE_OFF1(Js::PreReservedHeapAllocPhase) &&
!IsJitInDebugMode() && GetThreadContextInfo()->IsCFGEnabled()
//&& !GetScriptContext()->IsScriptContextInDebugMode()
!IsJitInDebugMode()
#if _M_IX86
&& m_workItem->GetJitMode() == ExecutionMode::FullJit

Expand Down

0 comments on commit a9a368f

Please sign in to comment.