Repository navigation
Commit 2e48c83
committed
perf(json): release replacer membership buckets (#519)
Allocate the invocation-local PropertyList membership buckets from the active precise realm accounted backing allocator and deinitialize them once ordered-key construction completes. Key slices and the ordered allowlist retain their existing arena lifetime for serialization.
This prevents warm repeated JSON.stringify calls from retaining one hash table per invocation while preserving the linear membership algorithm. Arena-only interpreters keep their established allocator lifetime; no process-global or cross-realm state is introduced.
Focused gate passes normally and under TSan; full unit gate is 1,545 passed, 1 expected skip, 0 failed/leaked; ReleaseFast JSON.stringify test262 remains 66/66, flips 0 cases and regressions 0.1 parent c823cfb commit 2e48c83
2 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2641 | 2641 | | |
2642 | 2642 | | |
2643 | 2643 | | |
| 2644 | + | |
2644 | 2645 | | |
| 2646 | + | |
2645 | 2647 | | |
2646 | 2648 | | |
2647 | 2649 | | |
| |||
2663 | 2665 | | |
2664 | 2666 | | |
2665 | 2667 | | |
2666 | | - | |
| 2668 | + | |
2667 | 2669 | | |
2668 | 2670 | | |
2669 | 2671 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4235 | 4235 | | |
4236 | 4236 | | |
4237 | 4237 | | |
| 4238 | + | |
| 4239 | + | |
| 4240 | + | |
| 4241 | + | |
| 4242 | + | |
| 4243 | + | |
| 4244 | + | |
| 4245 | + | |
| 4246 | + | |
4238 | 4247 | | |
4239 | 4248 | | |
4240 | 4249 | | |
| |||
0 commit comments