diff options
Diffstat (limited to 'src/vm/util.hpp')
-rw-r--r-- | src/vm/util.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/vm/util.hpp b/src/vm/util.hpp index ad1261845f..82e87e4a11 100644 --- a/src/vm/util.hpp +++ b/src/vm/util.hpp @@ -728,6 +728,15 @@ typedef Wrapper<void *, DoNothing, VoidCLRUnmapViewOfFile> CLRMapViewHolder; typedef Wrapper<void *, DoNothing, DoNothing> CLRMapViewHolder; #endif +#ifdef FEATURE_PAL +#ifndef DACCESS_COMPILE +FORCEINLINE void VoidPALUnloadPEFile(void *ptr) { PAL_LOADUnloadPEFile(ptr); } +typedef Wrapper<void *, DoNothing, VoidPALUnloadPEFile> PALPEFileHolder; +#else +typedef Wrapper<void *, DoNothing, DoNothing> PALPEFileHolder; +#endif +#endif // FEATURE_PAL + void GetProcessMemoryLoad(LPMEMORYSTATUSEX pMSEX); void ProcessEventForHost(EClrEvent event, void *data); |