diff options
author | Mike McLaughlin <mikem@microsoft.com> | 2016-12-18 14:48:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-18 14:48:36 -0800 |
commit | e50b22b4f07b452b3ce7261fb543a43aa8f70b88 (patch) | |
tree | a3910ccba568b59c4f60cdda7ac7cd9f8357afc9 /src/jit | |
parent | 4497b25d1107846e0ac8d09fa13e40173528fe9e (diff) | |
download | coreclr-e50b22b4f07b452b3ce7261fb543a43aa8f70b88.tar.gz coreclr-e50b22b4f07b452b3ce7261fb543a43aa8f70b88.tar.bz2 coreclr-e50b22b4f07b452b3ce7261fb543a43aa8f70b88.zip |
Remove Read/WriteProcessMemory from PAL. (#8655)
Ifdef more unused code that uses ReadProcessMemory. Move the current
memory probing in the transport to PAL_ProbeMemory. Add PAL_ProbeMemory
to dac PAL exports.
PAL_ProbeMemory may be changed to use write/read on a pipe to
validate the memory as soon as we make it perform as well as
the current code.
Remove ReadProcessMemory tests and add PAL_ProbeMemory pal tests.
Diffstat (limited to 'src/jit')
-rw-r--r-- | src/jit/ee_il_dll.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jit/ee_il_dll.cpp b/src/jit/ee_il_dll.cpp index 2cc876a64a..dcadaa9453 100644 --- a/src/jit/ee_il_dll.cpp +++ b/src/jit/ee_il_dll.cpp @@ -1537,6 +1537,9 @@ const char* Compiler::eeGetClassName(CORINFO_CLASS_HANDLE clsHnd) const wchar_t* Compiler::eeGetCPString(size_t strHandle) { +#ifdef FEATURE_PAL + return nullptr; +#else char buff[512 + sizeof(CORINFO_String)]; // make this bulletproof, so it works even if we are wrong. @@ -1558,6 +1561,7 @@ const wchar_t* Compiler::eeGetCPString(size_t strHandle) } return (asString->chars); +#endif // FEATURE_PAL } #endif // DEBUG |