Structure builder: submissions that ask for structures' sizes are waited for (VICTORY_BVH_SIZES_WAIT=0: not); a packed structure is one node longer; VICTORY_BVH_TRACE

The title reads a new structure's compacted size a frame or two after it asked,
takes memory of that size and copies the structure there. It read the size the
slot held before: the copies wrote over their neighbours (run light-11).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
localandClaude Opus 5.5 committed 2026-11-25 11:09:43 -06:00
1 parent 05af6e9586
commit c2d559893b
3 files changed
+161 -3

No files matched your search

+3
View File
@@ -4906,6 +4906,7 @@ impl Host {
return;
};
let told = !sent.writes.is_empty();
let sizes = crate::memory::asked_sizes(order.iter().map(|&i| lists[i].host()));
let most = {
let mut line = line();
let Line { line: items, written, lists: flying, target, .. } = &mut *line;
@@ -4928,6 +4929,8 @@ impl Host {
RELAY_MOVED.notify_one();
if told && !late_writes() {
self.settle(&mut submitted, WHY_WRITES);
} else if sizes {
self.settle(&mut submitted, WHY_READ);
} else if most && relay_exact() {
// Until there are fewer, not until there are none.
relay_wait(WHY_MOST, |line| line.lists < late_most());