summaryrefslogtreecommitdiff
path: root/src/inc/utilcode.h
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/inc/utilcode.h
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/inc/utilcode.h')
-rw-r--r--src/inc/utilcode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/inc/utilcode.h b/src/inc/utilcode.h
index a9cb0077fc..c781dcedb3 100644
--- a/src/inc/utilcode.h
+++ b/src/inc/utilcode.h
@@ -1181,6 +1181,8 @@ void SplitPath(__in SString const &path,
__inout_opt SString *fname,
__inout_opt SString *ext);
+#if !defined(NO_CLRCONFIG)
+
//*****************************************************************************
//
// **** REGUTIL - Static helper functions for reading/writing to Windows registry.
@@ -1515,6 +1517,8 @@ private:
LPWSTR m_wszString;
};
+#endif // defined(NO_CLRCONFIG)
+
#include "ostype.h"
#define CLRGetTickCount64() GetTickCount64()
@@ -4167,6 +4171,8 @@ public:
}
};
+#if !defined(NO_CLRCONFIG)
+
/**************************************************************************/
/* simple wrappers around the REGUTIL and MethodNameList routines that make
the lookup lazy */
@@ -4273,6 +4279,8 @@ private:
BYTE m_inited;
};
+#endif // !defined(NO_CLRCONFIG)
+
//*****************************************************************************
// Convert a pointer to a string into a GUID.
//*****************************************************************************