Skip to content

Commit 4e2a2a8

Browse files
committed
Preserve overlay allocation charges across replacements and deletions
Size replacement growth after removing old entries from the unpublished clone. Track backing-capacity watermarks for retained maps, posting sets, and bookkeeping instead of releasing tombstone storage. Add deterministic red/green replacement and deletion regressions, rehash/pressure coverage, and changed-CRLF checkpoint parity. Co-authored-by: Copilot App <[email protected]> Copilot-Session: cff18193-91c7-4186-9e2d-7dfa8433e29d Cherry-picked-from: 6627cef Copilot-Session: d2a0130e-af45-49cc-ac06-2c1da73d9d13
1 parent 6ac6985 commit 4e2a2a8

6 files changed

Lines changed: 444 additions & 98 deletions

File tree

‎SHARED_WORKTREE_INDEXES.md‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,8 +1065,14 @@ extraction releases temporary growth headroom, and publication releases each
10651065
input table after consuming it. Live overlay admission accounts for hash-table
10661066
capacities, including bucket/control storage and per-allocation padding, rather
10671067
than accumulating a fixed allowance for every posting insertion. Table growth
1068-
reserves both old and replacement storage before allocation; retained views and
1069-
checkpoint capture remain charged. This allows full CRLF/smudge overlays to use
1068+
reserves both old and replacement storage before allocation. Retained tables,
1069+
including each posting set and its allocation bookkeeping, keep a backing-capacity
1070+
watermark across deletions: tombstones can reduce insertion capacity without
1071+
freeing buckets. Charges are lowered only for dropped or rebuilt storage, not
1072+
merely because entries were removed. File replacement removes old entries from
1073+
the unpublished overlay before admitting table growth; failures leave the
1074+
published view unchanged. Retained views and checkpoint capture remain charged.
1075+
This allows full CRLF/smudge overlays to use
10701076
the existing budget without normalizing bytes, weakening masks or raising limits.
10711077

10721078
Workers verify and decode/hash every required file, compare exact indexed content

0 commit comments

Comments
 (0)