MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / allocate

Method allocate

src/callTraceStorage.cpp:34–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33 public:
34 static LongHashTable* allocate(LongHashTable* prev, u32 capacity) {
35 LongHashTable* table = (LongHashTable*)OS::safeAlloc(getSize(capacity));
36 if (table != NULL) {
37 table->_prev = prev;
38 table->_capacity = capacity;
39 table->_size = 0;
40 }
41 return table;
42 }
43
44 LongHashTable* destroy() {
45 LongHashTable* prev = _prev;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected