MCPcopy Create free account
hub / github.com/apple/foundationdb / hasFree

Method hasFree

flow/Arena.cpp:154–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154bool Arena::hasFree(size_t size, const void* address) {
155 if (impl) {
156 allowAccess(impl.getPtr());
157 auto result = impl->unused() >= size && impl->getNextData() == address;
158 disallowAccess(impl.getPtr());
159 return result;
160 }
161 return false;
162}
163
164void ArenaBlock::addref() {
165 makeDefined(this, sizeof(ThreadSafeReferenceCounted<ArenaBlock>));

Callers 1

allocateMethod · 0.80

Calls 5

allowAccessFunction · 0.85
disallowAccessFunction · 0.85
unusedMethod · 0.80
getNextDataMethod · 0.80
getPtrMethod · 0.45

Tested by

no test coverage detected