| 297 | } |
| 298 | |
| 299 | void 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 | |
| 307 | void* ArenaBlock::dependOn4kAlignedBuffer(Reference<ArenaBlock>& self, uint32_t size) { |
| 308 | if (!self || self->isTiny() || self->unused() < sizeof(ArenaBlockRef)) { |
nothing calls this directly
no test coverage detected