MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / alloc

Method alloc

common/script/scriptheap.cpp:43–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void* ScriptHeap::alloc(size_t size)
44{
45 void* ptr = malloc(size);
46 if (ptr) {
47 std::lock_guard<std::mutex> lock(mMutex);
48 mBlocks[ptr] = freeBlock;
49 }
50 return ptr;
51}
52
53void* ScriptHeap::allocZeroed(size_t count, size_t size)
54{

Callers 4

savReadMethod · 0.80
savReadMethod · 0.80
makeDirDataFunction · 0.80
ckpt_script_mallocFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected