diff options
author | David Wrighton <davidwr@microsoft.com> | 2019-06-07 11:38:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-07 11:38:49 -0700 |
commit | b614f4f5529296cac834e54f2fa4bc540a61a04d (patch) | |
tree | 9ed3c8a7e298516bcb436bf68252b959f524a762 /src/vm/util.cpp | |
parent | b51993933c5f2f29b20d229cdb32bbcb41e76dd6 (diff) | |
download | coreclr-b614f4f5529296cac834e54f2fa4bc540a61a04d.tar.gz coreclr-b614f4f5529296cac834e54f2fa4bc540a61a04d.tar.bz2 coreclr-b614f4f5529296cac834e54f2fa4bc540a61a04d.zip |
Reduce indirect function calls (#24980)
* Reduce indirect dispatch in hot paths in metadata
* Remove allocation indirections in utilcode for coreclr
- we no longer have a multi-dll distribution of code that needs to share heaps
* Remove unused code in GetCLRFunction
* Remove virtual dispatch around impl/decl methodtable access in MethodData
Diffstat (limited to 'src/vm/util.cpp')
-rw-r--r-- | src/vm/util.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/vm/util.cpp b/src/vm/util.cpp index 2e2648e909..2b2bb236b3 100644 --- a/src/vm/util.cpp +++ b/src/vm/util.cpp @@ -1848,10 +1848,6 @@ HMODULE CLRGetModuleHandle(LPCWSTR lpModuleFileName) } #endif // !FEATURE_PAL -LPVOID EEHeapAllocInProcessHeap(DWORD dwFlags, SIZE_T dwBytes); -BOOL EEHeapFreeInProcessHeap(DWORD dwFlags, LPVOID lpMem); -BOOL IsRuntimeStarted(DWORD *pdwStartupFlags); - void *GetCLRFunction(LPCSTR FunctionName) { @@ -1860,19 +1856,7 @@ void *GetCLRFunction(LPCSTR FunctionName) LIMITED_METHOD_CONTRACT; - if (strcmp(FunctionName, "EEHeapAllocInProcessHeap") == 0) - { - func = (void*)EEHeapAllocInProcessHeap; - } - else if (strcmp(FunctionName, "EEHeapFreeInProcessHeap") == 0) { - func = (void*)EEHeapFreeInProcessHeap; - } - else if (strcmp(FunctionName, "IsRuntimeStarted") == 0) - { - func = (void*)IsRuntimeStarted; - } - else { _ASSERTE ("Unknown function name"); func = NULL; } |