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

Method dependOn

flow/Arena.cpp:299–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297}
298
299void ArenaBlock::dependOn(Reference<ArenaBlock>& self, ArenaBlock* other) {
300 other->addref();
301 if (!self || self->isTiny() || self->unused() < sizeof(ArenaBlockRef))
302 create(SMALL, self)->makeReference(other);
303 else
304 self->makeReference(other);
305}
306
307void* ArenaBlock::dependOn4kAlignedBuffer(Reference<ArenaBlock>& self, uint32_t size) {
308 if (!self || self->isTiny() || self->unused() < sizeof(ArenaBlockRef)) {

Callers

nothing calls this directly

Calls 4

isTinyMethod · 0.95
unusedMethod · 0.95
makeReferenceMethod · 0.95
addrefMethod · 0.45

Tested by

no test coverage detected