summaryrefslogtreecommitdiff
path: root/core/layout.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-19 17:05:16 -0300
committerGabriel Schneider <[email protected]>2026-11-19 18:17:17 -0300
commit230999248d8c3045451f46d7c28c2fb46d20b419 (patch)
tree74bf12a16cb21bf943388594c307acb45aea4a1a /core/layout.zig
parent4262f3859814beef59c2dbd3e8a3db7dbf90e699 (diff)
downloadpardes-230999248d8c3045451f46d7c28c2fb46d20b419.tar.gz
pardes-230999248d8c3045451f46d7c28c2fb46d20b419.zip
normal: SearchRegex.compile frees its one branch when the pattern does not compile (pardes-regex item 2, the coordinator's fix finished; the gate of pardes-merge20: the soak's session aborted on its allocator's leak check, 14 branches of `Places.derive` leaked): a pattern with no `\b` allocated its one Branch (2,176 bytes) with the allocator it was handed and then `try`d the compile, and Places compiles a typed pattern with the pane's own allocator, not an arena, at every keystroke of a search, so each half-typed pattern that is no expression yet (`(`, `[`, `*a`) leaked one for the session's life; an `errdefer` frees it; the test "SearchRegex: a pattern that does not compile leaves nothing allocated" (its `a{` left to item 1's change, and `\bfoo(` added for the branch list's own path), each refused, none leaking: without the `errdefer` the testing allocator reports 4 leaks (normal.zig:145), with it it passes; the same shape (an allocation then a `try`, with an allocator that is not an arena) looked for where a typed pattern is compiled or kept: normal.zig (SearchRegex.compile's `\b` list has its `errdefer`; searchStep compiles into `e.scratch`, an arena), Places.zig (search's `dupe` and derive's two compiles: no `try` after an allocation; clear frees the branches), Query.zig (save has an `errdefer` for each allocation; the line's `dupe` is caught), regexp.zig (allocates nothing), look.zig (compiles no pattern), Plumb.zig, sam_edit.zig, indent.zig and ninep/addr.zig (Regex.compile, a value): none other; gate, on items 1 and 2 together (load 5 to 14, other agents' builds beside): tui core-test 842/985 (143 skipped; the base's 840/983 and the two tests), shell-test 1021/1024, pane-test 183/184, behaviour-test 275/275 and --replay 20 seeds of 70 steps 0 failures, process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's; winch failed once and passed on the runner's retry), gui unit-test 1619/1623 (the base's 1617/1621 and the two tests; the perf check's BaselineHarnessMismatch, the base's), replicas --clients 5 (TMPDIR /tmp/claude-1000/rx) ENDS with no leak report: diverged 0/0/0, unequal 0/0/0, deltas checked/wrong 1799/0 1832/0 1681/0, quiet 591/0 645/0 579/0, stops unlisted 0/0/0, the corpus scene 22 of 22 (that run); the frame and perf gate against tree1 on all three changes (gpu/regex-1, load 4 to 16): PASS, frames 77/77 byte-identical in Debug, gui unit-test 1619/1623, perfab corpus2x +0.015% (session noise 0.057%, threshold 0.4%), pictures identical in all 10 runs, perfops 97 counts within 0.1% (largest image-frame on large +0.0307%)
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/layout.zig')
0 files changed, 0 insertions, 0 deletions