perf(logging): add guarded exec_mx lock-elision research - #139
Merged
Merged
Conversation
Add explicit formatter and backend capability hooks with a serialized fallback so Logger can elide exec_mx only for implementations that document complete concurrent lifecycle safety. Cover the opt-in and fallback paths with deterministic tests and a 1/4/16/32 producer research benchmark, and document the contract in ADR 0006.
Replace make_unique in the capability regression test with explicit unique_ptr construction so the Linux C++11 matrix compiles with GCC.
LimiNode
force-pushed
the
perf/exec-mx-research
branch
from
September 19, 2026 17:31
de588d1 to
d94a69c
Compare
Require opted-in backends to make clear_logs safe alongside dispatch and lifecycle operations, matching the Logger paths that can run concurrently without exec_mx.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary\n- add explicit formatter/backend concurrency capability hooks (default false)\n- elide per-strategy exec_mx only when both capabilities opt in; retain serialized fallback\n- add fallback/opt-in regression tests and a 1/4/16/32 producer A/B benchmark\n- document the lifecycle contract in ADR 0006 and benchmark guidance\n\nThe benchmark is intentionally machine-specific research. Built-in backends remain serialized until their complete lifecycle contracts are audited.