We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c8bb40 commit 901fd65Copy full SHA for 901fd65
src/coreclr/utilcode/executableallocator.cpp
@@ -3,6 +3,7 @@
3
4
#include "pedecoder.h"
5
#include "executableallocator.h"
6
+#include <configuration.h>
7
8
#if USE_LAZY_PREFERRED_RANGE
9
// Preferred region to allocate the code in.
@@ -260,7 +261,7 @@ HRESULT ExecutableAllocator::StaticInitialize(FatalErrorHandler fatalErrorHandle
260
261
#endif
262
263
g_fatalErrorHandler = fatalErrorHandler;
- g_isWXorXEnabled = CLRConfig::GetConfigValue(CLRConfig::EXTERNAL_EnableWriteXorExecute) != 0;
264
+ g_isWXorXEnabled = Configuration::GetKnobBooleanValue(W("System.Runtime.EnableWriteXorExecute"), CLRConfig::EXTERNAL_EnableWriteXorExecute);
265
g_instance = new (nothrow) ExecutableAllocator();
266
if (g_instance == NULL)
267
{
0 commit comments