MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / jit_alloc_persistent

Function jit_alloc_persistent

src/builtin/module_jit.cpp:429–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427 }
428
429 DAS_API void * jit_alloc_persistent ( uint32_t bytes, Context * context ) {
430 if ( !bytes ) context->throw_out_of_memory(false, bytes);
431 return das_aligned_alloc16(bytes);
432 }
433
434 DAS_API void jit_free_heap ( void * bytes, uint32_t size, Context * context ) {
435 context->free((char *)bytes,size);

Callers

nothing calls this directly

Calls 2

das_aligned_alloc16Function · 0.85
throw_out_of_memoryMethod · 0.80

Tested by

no test coverage detected