summaryrefslogtreecommitdiff
path: root/core/Command.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-26 10:35:42 -0300
committerGabriel Schneider <[email protected]>2026-11-26 10:35:42 -0300
commitf11b123a8f4c38b6582c03d2acf84143ed1e7fd3 (patch)
tree71466c252634daeceba6c4dc183f250e122ca79c /core/Command.zig
parent2dae98b564e677c24c5275070c413d05a85d12fc (diff)
downloadpardes-f11b123a8f4c38b6582c03d2acf84143ed1e7fd3.tar.gz
pardes-f11b123a8f4c38b6582c03d2acf84143ed1e7fd3.zip
Kind: a picture drawn for a pane that shows no kind's slot when it lands is dropped there, never kept in `ready` for a paint that never comes (the soak with the pdf addon on this stack's top, after kysrwqpz: `allocator leaks detected` at seed 1 rtt 30, two draws of the pdf addon's, their inputs (api.draw's copy), their KindJobs and their pixels (KindJob.run's arena), and `ready`'s own buffer, all from Kind.paint's draws landed by Kind.landDraw); THE CAUSE: a draw is a frame's, run on a worker and landed on the loop later (landDraw), which kept it for the pane's next paint unless the pane had closed or its serial moved; a picker's preview (Pick.showKind) is a kind's slot over a pane that stays: Esc, the next row or ⏎ closes the slot (Kind.close drops the draws then in `ready`), and a draw still on its worker lands after it on a pane that is its own text again; no paint of a kind ever takes it (deliver runs for a kind's pane alone) and the pane's own close passes it by (Kind.close returns at once for a pane with no slot), so it stayed until the process ended, a page's pixels a draw (megabytes) in a long session for every preview closed under a draw; THE FIX: landDraw drops a draw whose pane has no kind's slot (`pane.addon == null`), as one whose pane closed; a draw of an earlier slot landing on a later one is dropped at its paint as before (Slot.drawn_from, gen, ops); RUN (TEST FIRST): Kind.zig "a picture drawn for a pane that shows no kind's slot when it lands (a picker's preview closed meanwhile) is dropped, never kept for a paint that never comes": a draw landed on a text pane: kept in `ready` on the base (expected 0, found 1), dropped now; the soak with the pdf addon: diverged 0, unequal 0, quiet checks 566/0 481/0 674/0, stops not on may_wait 0, the corpus 22 of 22 scenes the same, no leak, the pdf panes the session opened 6, 7 and 7 (the same stack without this change: the leak at seed 1 rtt 30); a user hit it with every picker over PDFs moved or closed while a page drew (the session's own frontend draws on workers too): memory held to the session's end; NEW HOT PATHS: none (one field read as a draw lands); GATES: core-test 1164/1339 (175 skipped: +1); load 2.9 to 9.8
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'core/Command.zig')
0 files changed, 0 insertions, 0 deletions