diff options
author | Pat Gavlin <pagavlin@microsoft.com> | 2016-02-25 07:19:33 -0800 |
---|---|---|
committer | Pat Gavlin <pagavlin@microsoft.com> | 2016-02-25 07:19:33 -0800 |
commit | d2b9a6e8bae487ae092fca2d3bccd109c7ef85f9 (patch) | |
tree | 68584f2abe48ea3ada91c9c6c93cf3ba2102f0c6 /src/utilcode/jithost.cpp | |
parent | c3b883ca33c1080ec65815684aabce462624b1b4 (diff) | |
download | coreclr-d2b9a6e8bae487ae092fca2d3bccd109c7ef85f9.tar.gz coreclr-d2b9a6e8bae487ae092fca2d3bccd109c7ef85f9.tar.bz2 coreclr-d2b9a6e8bae487ae092fca2d3bccd109c7ef85f9.zip |
Add a new set of APIs for JIT configuration.
These APIs accommodate the retrieval of config values using the JIT
interface rather than the utilcode library. All configuration options
are now initialized upon the first call to compileMethod. The values
of configuration options are available off of an ambient JitConfig
object.
This also changed `JitHost::get*ConfigValue` to use the
`EEConfig_default` policy instead of `REGUTIL_default` in order to
avoid breaking a small set of JIT config options available in release
builds that were using the former. This change is exceedingly
unlikely to adversely affect the behavior of other JIT config options
that were originally fetched using `REGUTIL_default`, since values
for these options should not be present any locations searched
by `EEConfig_default` that are not searched by
`REGUTIL_default` (namely config files).
[tfs-changeset: 1578859]
Diffstat (limited to 'src/utilcode/jithost.cpp')
-rw-r--r-- | src/utilcode/jithost.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utilcode/jithost.cpp b/src/utilcode/jithost.cpp index 412cc47786..3174aa6188 100644 --- a/src/utilcode/jithost.cpp +++ b/src/utilcode/jithost.cpp @@ -41,7 +41,7 @@ int JitHost::getIntConfigValue(const wchar_t* name, int defaultValue) WRAPPER_NO_CONTRACT; // Translate JIT call into runtime configuration query - CLRConfig::ConfigDWORDInfo info{ name, defaultValue, CLRConfig::REGUTIL_default }; + CLRConfig::ConfigDWORDInfo info{ name, defaultValue, CLRConfig::EEConfig_default }; // Perform a CLRConfig look up on behalf of the JIT. return CLRConfig::GetConfigValue(info); @@ -52,7 +52,7 @@ const wchar_t* JitHost::getStringConfigValue(const wchar_t* name) WRAPPER_NO_CONTRACT; // Translate JIT call into runtime configuration query - CLRConfig::ConfigStringInfo info{ name, CLRConfig::REGUTIL_default }; + CLRConfig::ConfigStringInfo info{ name, CLRConfig::EEConfig_default }; // Perform a CLRConfig look up on behalf of the JIT. return CLRConfig::GetConfigValue(info); |