summaryrefslogtreecommitdiff
path: root/src/ToolBox/superpmi/superpmi-shared/icorjithostimpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ToolBox/superpmi/superpmi-shared/icorjithostimpl.h')
-rw-r--r--src/ToolBox/superpmi/superpmi-shared/icorjithostimpl.h49
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