Commit ce0ba41
authored
Aggregate live bytes info in on_gc_finished (#1292)
This PR moves the call to `aggregate_live_bytes_in_last_gc` from the
`Release` work packet to `on_gc_finished`. Spaces may do release work in
parallel with the `Release` work packet, and
`aggregate_live_bytes_in_last_gc` accesses reserved pages of spaces.
This leads to a data race. We observed the reserved pages in the
collected live bytes stats to be larger than the actual reserved pages
at the end of a GC, as some pages were not released yet.1 parent 374ec2c commit ce0ba41
2 files changed
+9
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | 156 | | |
166 | 157 | | |
167 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
557 | | - | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
558 | 566 | | |
559 | 567 | | |
560 | 568 | | |
| |||
0 commit comments