Skip to content

perf(debug): use stack-local buffer and narrow critical section scope#7

Merged
TorinKS merged 1 commit intomainfrom
change/fix-debug-thread-safety
Mar 22, 2026
Merged

perf(debug): use stack-local buffer and narrow critical section scope#7
TorinKS merged 1 commit intomainfrom
change/fix-debug-thread-safety

Conversation

@TorinKS
Copy link
Copy Markdown
Owner

@TorinKS TorinKS commented Mar 22, 2026

Move log formatting buffer from shared DEBUG_STATE member to stack-local variable. Critical section now only protects output (console/debugger/file), not formatting. Removes 2KB from heap and allows concurrent formatting.

Move log formatting buffer from shared DEBUG_STATE member to stack-local
variable. Critical section now only protects output (console/debugger/file),
not formatting. Removes 2KB from heap and allows concurrent formatting.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@TorinKS TorinKS merged commit aa89b12 into main Mar 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant