summaryrefslogtreecommitdiff
path: root/docs/typ/reference.typ
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-19 13:16:15 -0300
committerGabriel Schneider <[email protected]>2026-11-19 15:09:19 -0300
commit553a62bac675bfc0a64254718488d3c8012f533e (patch)
treebf715815347a72486ccdffeb9a5d3c08dedac76b /docs/typ/reference.typ
parent64b8951d198aa0dcd0a544abd6f103693b5205aa (diff)
downloadpardes-553a62bac675bfc0a64254718488d3c8012f533e.tar.gz
pardes-553a62bac675bfc0a64254718488d3c8012f533e.zip
cli: a core made here is let go only after its serve thread has ended (the reorganisation's runners, step 10c, its third part: the crash once in 14 shell-test runs, a serve thread reading a freed core): the coordinator's trace (runtime/main.zig `Here.serve` -> Pardes.serveFs, reading `p.fs.edit_hold`) is the command line's own server, not the 9P listener: Tree.open served a core made in this process on a DETACHED thread, and the `cli:` test freed that core with its arena as soon as its read returned, while the thread was still answering the clunk the client sends and never waits for (cloud9 Fsys.clunk); the thread is kept now and Tree.close closes the client's end and joins it before the core's memory may go; cloud9's candidate (acceptLoop adding a connection's task while stop cancels the group) is not a fault: std.Io.Threaded's groupCancel waits until the group's running count is zero, the adder is itself a running task of the group so the count cannot reach zero between, and a task started after the cancel starts canceled (Group.Task.start); a test, `cli: a core made here is let go only once its serve thread has ended`, reads, closes and frees a core made here 300 times with the page allocator's arena (a read after is a fault): before the fix it segfaulted on its first run (Segmentation fault in the test process; the test runner still reported the step passed, so the gate never saw it); after it passes; shell-test 1017/1020 and gui unit-test 1615/1619 with it, the rest as change 1's (the same run); the frame and perf gate against tree1 (run5-1, on the tree with both changes): PASS, frames 77/77 byte-identical, corpus2x -0.151% (bar 0.4%), the 97 per-operation counts within 0.1% (largest +0.031%)
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'docs/typ/reference.typ')
0 files changed, 0 insertions, 0 deletions