diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2017-04-27 16:54:50 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2017-04-27 16:54:50 +0900 |
commit | 5b975f8233e8c8d17b215372f89ca713b45d6a0b (patch) | |
tree | 0267bcc331458a01f4c26fafd28110a72273beb3 /src/ToolBox/superpmi/superpmi-shared/icorjithostimpl.h | |
parent | a56e30c8d33048216567753d9d3fefc2152af8ac (diff) | |
download | coreclr-5b975f8233e8c8d17b215372f89ca713b45d6a0b.tar.gz coreclr-5b975f8233e8c8d17b215372f89ca713b45d6a0b.tar.bz2 coreclr-5b975f8233e8c8d17b215372f89ca713b45d6a0b.zip |
Imported Upstream version 2.0.0.11599upstream/2.0.0.11599
Diffstat (limited to 'src/ToolBox/superpmi/superpmi-shared/icorjithostimpl.h')
-rw-r--r-- | src/ToolBox/superpmi/superpmi-shared/icorjithostimpl.h | 49 |
1 files changed, 21 insertions, 28 deletions
diff --git a/src/ToolBox/superpmi/superpmi-shared/icorjithostimpl.h b/src/ToolBox/superpmi/superpmi-shared/icorjithostimpl.h index 8bd09e5331..aac68421e7 100644 --- a/src/ToolBox/superpmi/superpmi-shared/icorjithostimpl.h +++ b/src/ToolBox/superpmi/superpmi-shared/icorjithostimpl.h @@ -23,33 +23,26 @@ // against the interface declaration. public: - // Allocate memory of the given size in bytes. All bytes of the returned block - // must be initialized to zero. If `usePageAllocator` is true, the implementation - // should use an allocator that deals in OS pages if one exists. - void* allocateMemory(size_t size, bool usePageAllocator = false); - - // Frees memory previous obtained by a call to `ICorJitHost::allocateMemory`. The - // value of the `usePageAllocator` parameter must match the value that was - // provided to the call to used to allocate the memory. - void freeMemory(void* block, bool usePageAllocator = false); - - // Return an integer config value for the given key, if any exists. - int getIntConfigValue( - const wchar_t* name, - int defaultValue - ); - - // Return a string config value for the given key, if any exists. - const wchar_t* getStringConfigValue( - const wchar_t* name - ); - - // Free a string ConfigValue returned by the runtime. - // JITs using the getStringConfigValue query are required - // to return the string values to the runtime for deletion. - // This avoids leaking the memory in the JIT. - void freeStringConfigValue( - const wchar_t* value - ); +// Allocate memory of the given size in bytes. All bytes of the returned block +// must be initialized to zero. If `usePageAllocator` is true, the implementation +// should use an allocator that deals in OS pages if one exists. +void* allocateMemory(size_t size, bool usePageAllocator = false); + +// Frees memory previous obtained by a call to `ICorJitHost::allocateMemory`. The +// value of the `usePageAllocator` parameter must match the value that was +// provided to the call to used to allocate the memory. +void freeMemory(void* block, bool usePageAllocator = false); + +// Return an integer config value for the given key, if any exists. +int getIntConfigValue(const wchar_t* name, int defaultValue); + +// Return a string config value for the given key, if any exists. +const wchar_t* getStringConfigValue(const wchar_t* name); + +// Free a string ConfigValue returned by the runtime. +// JITs using the getStringConfigValue query are required +// to return the string values to the runtime for deletion. +// This avoids leaking the memory in the JIT. +void freeStringConfigValue(const wchar_t* value); #endif |