This commit is contained in:
2022-12-27 19:40:50 +02:00
parent f12475ea99
commit d3e02e23e5
3 changed files with 32 additions and 50 deletions

View File

@@ -129,17 +129,10 @@ void CoreCLR::RegisterNativeLibrary(const char* moduleName, const char* modulePa
void* CoreCLR::Allocate(int size)
{
void* ptr = Platform::Allocate(size, 16);
#if COMPILE_WITH_PROFILER
Platform::OnMemoryAlloc(ptr, size);
#endif
return ptr;
return Platform::Allocate(size, 16);
}
void CoreCLR::Free(void* ptr)
{
#if COMPILE_WITH_PROFILER
Platform::OnMemoryFree(ptr);
#endif
Platform::Free(ptr);
}