Commit da8ffe6
authored
[release/10.0] Fix heap_segment_used watermark after compaction (#128342)
Backport of #128217 to release/10.0
## Customer Impact
- [x] Customer reported
- [ ] Found internally
GC with large pages enabled in regions mode can lead to intermittent
crashes due to non-zeroed memory being returned for an allocation
request that expects the memory to be zeroed.
## Regression
- [x] Yes, introduced when GC regions were enabled
- [ ] No
## Testing
CI tests, local testing using targeted repro app from the customer, GC
tests
## Risk
Low. It adds maintaining `heap_segment_used` watermark after compaction
so that it covers all the touched memory in a region. Before this
change, it was stale (lower) for regions that receive relocated objects.1 parent d8f92c8 commit da8ffe6
1 file changed
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12636 | 12636 | | |
12637 | 12637 | | |
12638 | 12638 | | |
| 12639 | + | |
| 12640 | + | |
| 12641 | + | |
| 12642 | + | |
| 12643 | + | |
12639 | 12644 | | |
12640 | 12645 | | |
12641 | 12646 | | |
| |||
38102 | 38107 | | |
38103 | 38108 | | |
38104 | 38109 | | |
| 38110 | + | |
| 38111 | + | |
| 38112 | + | |
| 38113 | + | |
| 38114 | + | |
| 38115 | + | |
| 38116 | + | |
| 38117 | + | |
| 38118 | + | |
| 38119 | + | |
| 38120 | + | |
| 38121 | + | |
| 38122 | + | |
| 38123 | + | |
| 38124 | + | |
38105 | 38125 | | |
38106 | 38126 | | |
38107 | 38127 | | |
| |||
0 commit comments