3 ms·
I didn't know about fully concurrent root scanning, thank you! How does root scanning work wrt to Loom? Are stacks of virtual threads treated as roots? I guess
by jerrinot 6y ago
I didn't know about fully concurrent root scanning, thank you!
How does root scanning work wrt to Loom? Are stacks of virtual threads treated as roots? I guess there is no other option?
- pron 6y agoNo, virtual thread stacks are not roots! This is one of the main design highlights of the current Loom implementation. In fact, at least currently, the VM doesn't maintain any list of virtual threads at all. They are just Java objects, but the GC does treat them specially.