MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / alloc

Method alloc

lib/asmjit/asmjit/core/jitallocator.cpp:1375–1383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1373 }
1374
1375 void* alloc(size_t size) noexcept {
1376 JitAllocator::Span span;
1377 Error err = _allocator.alloc(Out(span), size);
1378 EXPECT_EQ(err, Error::kOk)
1379 .message("JitAllocator failed to allocate %zu bytes\n", size);
1380
1381 _insert(span.rx(), span.rw(), size);
1382 return span.rx();
1383 }
1384
1385 void release(void* p) noexcept {
1386 _remove(p);

Callers 6

mainFunction · 0.45
_addMethod · 0.45
new_fixupMethod · 0.45
_insertMethod · 0.45
test_jit_allocator_queryFunction · 0.45

Calls 4

OutClass · 0.85
messageMethod · 0.80
rxMethod · 0.45
rwMethod · 0.45

Tested by 3

mainFunction · 0.36
test_jit_allocator_queryFunction · 0.36