Skip to content

Commit bcb271a

Browse files
grapebabaCopilot
andcommitted
log: review fixes — AsyncAppend ziggy rewrite, bug fixes
AsyncAppend (full rewrite): - Non-generic struct with allocator-based pre-allocation (zero hot-path alloc) - Cache-line aligned cursors (128B) to prevent false sharing - Epoch-based condvar parking replaces spin+sleep consumer loop - Wrapping arithmetic (+%) throughout for long-running correctness - Better memory orderings (monotonic for cursors, release/acquire for sequences) - @bitcast diff calculation replaces @intcast overflow risk Bug fixes from adversarial review: - EnvFilter.fromEnv(): use std.posix.getenv (process-lifetime pointer) instead of getEnvVarOwned into stack buffer (was use-after-free) - Dispatcher.emit(): save/restore diag_attrs.len across fan-out dispatches (diagnostic enrichment was contaminating subsequent dispatches) - JsonLayout: escape all control chars U+0000-U+001F per RFC 8259 §7 - LogfmtLayout: escape \r and \t (needsQuoting detected them but writeLogfmtEscaped didn't handle them) Prior auto-fixes included: - Record.zig: AttrIterator.next() rewritten from recursion to while loop - comptime_checks.zig: doc strings fixed *Self → *const Self - root.zig: global dispatcher redesigned with single atomic pointer swap Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a68c354 commit bcb271a

File tree

2,567 files changed

+21165
-199
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,567 files changed

+21165
-199
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 6860e0e04b866ad6797299fc268a03202ec27246
Lines changed: 78 additions & 0 deletions

.idea/copilot.data.migration.agent.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/editor.xml

Lines changed: 345 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 139 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/Users/grapebaba/.claude/plugins/cache/claude-plugins-official/remember/0.1.0/scripts/save-session.sh: line 135: cd: /Users/grapebaba/.claude/plugins/cache/claude-plugins-official/.claude/remember: No such file or directory
2+
/Users/grapebaba/.claude/plugins/cache/claude-plugins-official/remember/0.1.0/scripts/save-session.sh: line 140: [: : integer expression expected
3+
/Users/grapebaba/.claude/plugins/cache/claude-plugins-official/remember/0.1.0/scripts/save-session.sh: line 142: [: : integer expression expected
4+
/Users/grapebaba/.claude/plugins/cache/claude-plugins-official/remember/0.1.0/scripts/save-session.sh: line 164: cd: /Users/grapebaba/.claude/plugins/cache/claude-plugins-official/.claude/remember: No such file or directory

.remember/logs/autonomous/save-094159.log

Whitespace-only changes.

.remember/logs/autonomous/save-094223.log

Whitespace-only changes.

.remember/logs/autonomous/save-094235.log

Whitespace-only changes.

0 commit comments

Comments
 (0)