summaryrefslogtreecommitdiff
path: root/src/jit/jittelemetry.cpp
diff options
context:
space:
mode:
authorPat Gavlin <pagavlin@microsoft.com>2016-02-25 07:19:33 -0800
committerPat Gavlin <pagavlin@microsoft.com>2016-02-25 07:19:33 -0800
commitd2b9a6e8bae487ae092fca2d3bccd109c7ef85f9 (patch)
tree68584f2abe48ea3ada91c9c6c93cf3ba2102f0c6 /src/jit/jittelemetry.cpp
parentc3b883ca33c1080ec65815684aabce462624b1b4 (diff)
downloadcoreclr-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/jit/jittelemetry.cpp')
-rw-r--r--src/jit/jittelemetry.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/jit/jittelemetry.cpp b/src/jit/jittelemetry.cpp
index cac324f6b2..1b79272991 100644
--- a/src/jit/jittelemetry.cpp
+++ b/src/jit/jittelemetry.cpp
@@ -158,8 +158,7 @@ void JitTelemetry::Initialize(Compiler* c)
/* static */
bool JitTelemetry::IsTelemetryEnabled()
{
- static ConfigDWORD fJitTelemetry;
- return fJitTelemetry.val(CLRConfig::EXTERNAL_JitTelemetry) != 0;
+ return JitConfig.JitTelemetry() != 0;
}
//------------------------------------------------------------------------