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

Method allocZeroed

common/script/scriptheap.cpp:53–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void* ScriptHeap::allocZeroed(size_t count, size_t size)
54{
55 void* ptr = calloc(count, size);
56 if (ptr) {
57 std::lock_guard<std::mutex> lock(mMutex);
58 mBlocks[ptr] = freeBlock;
59 }
60 return ptr;
61}
62
63void* ScriptHeap::reallocate(void* ptr, size_t size)
64{

Callers 1

ckpt_script_callocFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected