-
-
Notifications
You must be signed in to change notification settings - Fork 158
feat(runtime): tombstone object deletes default-on (populated delete 6.5x) #9038
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
proggeramlug
merged 6 commits into
PerryTS:main
from
proggeramlug:feat-tombstones-default-on
Aug 29, 2026
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
6fdeff5
feat(runtime): tombstone object deletes default-on
d85a1ac
fix(runtime): tombstone walker audit — template SEGV, phantom keys, h…
d9f4345
chore(runtime): file-size and census gates for the audit commit
454b0c6
docs: changelog fragment covers the verdict, audit fixes, and final n…
f6cb81c
Merge remote-tracking branch 'origin/main' into v9038
21c5d88
docs: renumber the default-on fragment 9037 -> 9038
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| Tombstone object deletes (#9029) are now the DEFAULT. `delete obj[k]` on an | ||
| owned keys array is O(1) — a hole marker plus a barriered value clear — | ||
| with threshold compaction amortizing the debt (never more than 2x live | ||
| size). `bench_populated_delete` drops 2030 → ~315 ms (6.5x; ~15x node on | ||
| the same host, from ~96x before the campaign). Deletes on cache-shared | ||
| keys arrays still clone-compact once to take ownership; every later delete | ||
| on that object is O(1). | ||
|
|
||
| The kill switch is `PERRY_OBJECT_TOMBSTONES=0` (also `off`/`false`), | ||
| mirroring the moving-scavenge rollout's `PERRY_GC_MOVING_LOOP_POLLS=0` | ||
| pattern. `=1` remains accepted and is now redundant. | ||
|
|
||
| Shipping default-on was gated on the #9029 walker audit (all 57 files | ||
| touching keys arrays classified; four flag-on-only bugs found and fixed, | ||
| including a JSON-template SIGSEGV and the hole-count accounting reset that | ||
| let delete/re-add churn dodge the squeeze bound) and on the churn-bound | ||
| unit test that pins the 2x-live-size memory guarantee. Full suite runs | ||
| with the default flag, so every delete-touching test now exercises the | ||
| tombstone path; the four differentials plus the two holed-JSON-array | ||
| repros stay byte-identical to node in BOTH flag directions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Clarify the flag-off sentence.
Replace
flag-off it still gainswithwith the flag off, it still gains.🧰 Tools
🪛 LanguageTool
[grammar] ~4-~4: Use a hyphen to join words.
Context: ...still gains −11% (the complete-index absence verdict below applies to ordinar...
(QB_NEW_EN_HYPHEN)
🤖 Prompt for AI Agents
Source: Linters/SAST tools