Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Support COMPlus_JITMinOpts for crossgen
Browse files Browse the repository at this point in the history
In order to better enable throughput measurement and analysis,
we would like to be able to specify COMPlus_JITMinOpts with crossgen.
  • Loading branch information
CarolEidt authored and michellemcdaniel committed Aug 9, 2017
1 parent cf31400 commit 214d82d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/zap/zapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1367,6 +1367,13 @@ void Zapper::InitializeCompilerFlags(CORCOMPILE_VERSION_INFO * pVersionInfo)
if (pVersionInfo->wCodegenFlags & CORCOMPILE_CODEGEN_PROF_INSTRUMENTING)
m_pOpt->m_compilerFlags.Set(CORJIT_FLAGS::CORJIT_FLAG_BBINSTR);

// Set CORJIT_FLAG_MIN_OPT only if COMPlus_JitMinOpts == 1
static ConfigDWORD g_jitMinOpts;
if (g_jitMinOpts.val_DontUse_(CLRConfig::UNSUPPORTED_JITMinOpts, 0) == 1)
{
m_pOpt->m_compilerFlags.Set(CORJIT_FLAGS::CORJIT_FLAG_MIN_OPT);
}

#if defined(_TARGET_X86_)

// @TODO: This is a copy of SetCpuInfo() in vm\codeman.cpp. Unify the implementaion
Expand Down

0 comments on commit 214d82d

Please sign in to comment.