SpiecsEngine
 
Loading...
Searching...
No Matches

◆ SystemFree()

static void Spices::SystemFree ( void * ptr)
inlinestatic

Free memory to system.

Parameters
[in]ptrmemory pointer.

Definition at line 133 of file MemoryPool.h.

134 {
135 SPICES_PROFILE_FREE_N(ptr, memoryPoolNames[1]);
136
137#ifdef _WIN32
138
139 VirtualFree(ptr, 0, MEM_RELEASE);
140#else
141
142#endif
143 }
#define SPICES_PROFILE_FREE_N(ptr, name)

Referenced by Spices::PageCache::ReleaseSpanToPageCache().