Skip to content

Retain spdlog bench payloads until async queue drains - #86

Merged
LimiNode merged 2 commits into
codex/-odrfrom
codex/investigate-ci-linux-test-failure-uiumt0
Dec 4, 2025
Merged

Retain spdlog bench payloads until async queue drains#86
LimiNode merged 2 commits into
codex/-odrfrom
codex/investigate-ci-linux-test-failure-uiumt0

Conversation

@LimiNode

@LimiNode LimiNode commented Dec 4, 2025

Copy link
Copy Markdown
Owner

Summary

  • keep completed spdlog measuring payloads alive after flush so async sink threads cannot dereference freed buffers

Testing

  • cmake --build build --target logit_bench
  • ⚠️ LOGIT_BENCH_TOTAL=200 LOGIT_BENCH_WARMUP=20 ./build/logit_bench --filter "lib=spdlog async=1 sink=null producers=4 bytes=40" (benchmark aborted early with "Incomplete latency capture" prior to reaching the filtered scenario)

Codex Task

Prevent MeasuringSink from deleting payloads while the async thread pool may still dereference them by moving completed entries into a retired list.
@LimiNode
LimiNode merged commit 4c5034f into codex/-odr Dec 4, 2025
1 check passed
@LimiNode
LimiNode deleted the codex/investigate-ci-linux-test-failure-uiumt0 branch December 4, 2025 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant