MCPcopy Create free account
hub / github.com/crownengine/crown / deallocate

Method deallocate

src/core/memory/pool_allocator.cpp:87–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void PoolAllocator::deallocate(void *data)
88{
89 if (CE_UNLIKELY(!data))
90 return;
91
92 uintptr_t *next = (uintptr_t *)data;
93 *next = (uintptr_t)_freelist;
94
95 _freelist = data;
96}
97
98} // namespace crown

Callers 15

test_memoryFunction · 0.45
~PoolAllocatorMethod · 0.45
callstackFunction · 0.45
unloadFunction · 0.45
unloadFunction · 0.45
unloadFunction · 0.45
~ShaderResourceMethod · 0.45
compile_render_stateMethod · 0.45
unloadFunction · 0.45
parseFunction · 0.45
loadFunction · 0.45
scan_and_restoreMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_memoryFunction · 0.36