summaryrefslogtreecommitdiff
path: root/core/Core.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-20 16:12:18 -0300
committerGabriel Schneider <[email protected]>2026-11-20 16:32:23 -0300
commit387297c3bd42c7016e36009ecf8c807259398ac7 (patch)
tree93c0e1a34b488bcc83d3b3be7b0fea384727220f /core/Core.zig
parente4bda7e899089b0c8594ad1b03099402bddeeef1 (diff)
downloadpardes-387297c3bd42c7016e36009ecf8c807259398ac7.tar.gz
pardes-387297c3bd42c7016e36009ecf8c807259398ac7.zip
views.park: the slot it writes is known: the soak's 'allocator leaks detected' at a session's end (g4, seed 7 at 80 ms: Text.reserveSels from setRanges <- normal.replaySels <- a key in insert mode) was the ranges beside a text's primary, made while one view was open, left in a view's slot nothing frees: views.installed returns before `pane.pv_known = p.views_open` while one view is open (views.zig:284), so a pane made then knows no view; a client's join opens another (open sets that view's bit only) and its first input parks the live view (park, views.zig:334: pv[live] = extract(pane), which owns the live text's selections from then on) with the live view's bit still unset, so neither the pane's end (tornDown frees a slot only where its bit is set) nor the view's (dropView, the same) frees them; FIRST the test (views.zig, 'a text's ranges beside its primary, made while one view was open, are freed once another view has been live': a second cursor and a key in insert mode, a view opened and gone into; on the base the testing allocator: 1 leak, 20460 bytes); then the fix: park sets the live view's bit as it fills its slot (one line); a user: a session that ran with one client and later took a second, every pane opened before it that had several cursors leaked its ranges (about 20 KB a pane) until the session's end
Diffstat (limited to 'core/Core.zig')
0 files changed, 0 insertions, 0 deletions