From d2b9a6e8bae487ae092fca2d3bccd109c7ef85f9 Mon Sep 17 00:00:00 2001 From: Pat Gavlin Date: Thu, 25 Feb 2016 07:19:33 -0800 Subject: 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] --- src/jit/jittelemetry.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/jit/jittelemetry.cpp') 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; } //------------------------------------------------------------------------ -- cgit v1.2.3