Repository navigation
Commit 760dbfc
Lock the GC root set while marking and visiting roots
GCAddRoot, GCRemoveRoot and the offset root functions take sGCRootLock,
but the collector iterated sgRootSet and sgOffsetRootSet without it.
Stopping the world doesn't protect these sets, because threads in GC
free zones and unregistered threads can still add and remove roots.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 504403d commit 760dbfc
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4263 | 4263 | | |
4264 | 4264 | | |
4265 | 4265 | | |
| 4266 | + | |
| 4267 | + | |
| 4268 | + | |
| 4269 | + | |
4266 | 4270 | | |
4267 | 4271 | | |
4268 | 4272 | | |
| |||
4286 | 4290 | | |
4287 | 4291 | | |
4288 | 4292 | | |
| 4293 | + | |
4289 | 4294 | | |
4290 | 4295 | | |
4291 | 4296 | | |
| |||
4709 | 4714 | | |
4710 | 4715 | | |
4711 | 4716 | | |
| 4717 | + | |
| 4718 | + | |
4712 | 4719 | | |
4713 | 4720 | | |
4714 | 4721 | | |
| |||
0 commit comments