MCPcopy Create free account
hub / github.com/bytedance/bolt / leaveArbitration

Method leaveArbitration

bolt/exec/MemoryReclaimer.cpp:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void MemoryReclaimer::leaveArbitration() noexcept {
62 DriverThreadContext* driverThreadCtx = driverThreadContext();
63 if (FOLLY_UNLIKELY(driverThreadCtx == nullptr)) {
64 // Skips the driver suspension handling if this memory arbitration
65 // request is not issued from a driver thread.
66 return;
67 }
68 Driver* const driver = driverThreadCtx->driverCtx()->driver;
69 driver->task()->leaveSuspended(driver->state());
70}
71
72void MemoryReclaimer::abort(
73 memory::MemoryPool* pool,

Callers

nothing calls this directly

Calls 5

driverThreadContextFunction · 0.85
leaveSuspendedMethod · 0.80
taskMethod · 0.80
driverCtxMethod · 0.45
stateMethod · 0.45

Tested by

no test coverage detected