summaryrefslogtreecommitdiff
path: root/core/Text.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-23 23:46:20 -0300
committerGabriel Schneider <[email protected]>2026-11-23 23:48:21 -0300
commit0252c830daf6184a9faefa32a7d1f384f5a86b94 (patch)
treec6a9c8d27312e4a096f4a17d8a935aa1aa97264b /core/Text.zig
parente71603b674b6f640274f988bb108c66e9392e42d (diff)
downloadpardes-0252c830daf6184a9faefa32a7d1f384f5a86b94.tar.gz
pardes-0252c830daf6184a9faefa32a7d1f384f5a86b94.zip
walk: what a value read back had made before it was left out, or took its default, is freed: the merged gate's shell-test (its SafeAllocator counts every allocation) failed the dump fuzz with 8 leaks once the fuzz read the byte dump and 1024 images (core-test's run does not count the image allocator's): a pane another build's (or a damaged) dump cannot give is left out (`elements`/`listInto`, an array of optional pointers) and a field whose kind changed takes its default or is left as it was (`fields`, by name), but what their read had made before it failed (the pane itself, a name, a slice; a custom type's `dumpRead`) stayed in the reader's list with nothing holding it: freed at no rollback, since the load succeeded; a leak on every Upgrade from a build whose pane another cannot read, and on every such damaged dump; now each reader marks where a value's read began (`Mark`: its made list and its customs) and `letGo` frees what was made since, customs first, each entry left dead (a later reference to it is refused, as a half-made one is); TEST FIRST: walk.zig "what a value left out had made is freed: a pane another build cannot give leaks nothing, from a dump or an image" (a pane whose `n` changed kind with no default, after its name was made: 4 leaks on the base, a pane and its name from each reader; none with it); the dump fuzz under shell-test's allocator passes (13/13)
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/Text.zig')
0 files changed, 0 insertions, 0 deletions