mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
fix highest allocated page for arena unload
This commit is contained in:
parent
7b8a710774
commit
a7370dcbd2
4 changed files with 24 additions and 6 deletions
|
@ -12,4 +12,14 @@ std::string TestAllocInDll::GetString()
|
|||
std::string r = test;
|
||||
delete[] test;
|
||||
return r;
|
||||
}
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
void TestAllocInDll::TestHeapAlloc()
|
||||
{
|
||||
HANDLE heap = GetProcessHeap();
|
||||
int* p = (int*)HeapAlloc(heap, 0, sizeof(int));
|
||||
*p = 42;
|
||||
HeapFree(heap, 0, p);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue