MCPcopy Create free account
hub / github.com/RenderKit/embree / os_free

Function os_free

common/sys/alloc.cpp:224–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222 }
223
224 void os_free(void* ptr, size_t bytes, bool hugepages)
225 {
226 if (bytes == 0)
227 return;
228
229 if (!VirtualFree(ptr,0,MEM_RELEASE))
230 throw std::bad_alloc();
231 }
232
233 void os_advise(void *ptr, size_t bytes)
234 {

Callers 5

reallocMethod · 0.85
deallocateMethod · 0.85
clear_blockMethod · 0.85
deallocateMethod · 0.85
freeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected