Skip to content

Commit 2778602

Browse files
committed
management: add bounded native runtime
Provide serial cluster ownership, fair pool runners and a callback lane with bounded admission so management work can progress independently of slow listeners and completion callbacks. Keep physical work on existing executors and reserve its result delivery before submission. Charge coalesced waiters separately, retain ordinary callback capacity until delivery, and release native reentry capacity after completion. Yield the reactor during caller-to-owner callback handoff, then resume its charged batch when the competing drainer returns. Keep terminal publication atomic while scanning shared callback batches outside future conditions, so standard bulk waits cannot invert their lock order. Preserve cancellation isolation, guaranteed close handles, late-result disposal and fork rejection before inherited locks. Reject mixed bulk waits inside their cleanup context so earlier fresh locks unwind after fork. Guard standard Future waits against owner self-waits without changing concurrent.futures globally. Cover overload, ordering, callback reentry, shutdown, failure unwinding, resource retention, interrupted admission and cancellation with controlled interleavings. Settle controlled physical futures even when regression assertions fail, preserving the original failure during fixture cleanup. Reactor adapters and existing driver entry points follow in dependent changes. Refs #1257.
1 parent 9b000a4 commit 2778602

2 files changed

Lines changed: 2908 additions & 0 deletions

File tree

0 commit comments

Comments
 (0)