On Tue, 11 Apr 2023 18:54:09 GMT, Alex Menkov <amen...@openjdk.org> wrote:

> The bug is about objects referenced only from stack of unmounted VT are not 
> reported by FollowReferences.
> So we need to detect stackChunk object and report references from them.

If an object is only reachable from the stack of a VT and the VT itself is not 
followed then we don't find that object either. But as I said a VT should be 
found via the object it is parked on, or via the scheduler. So is it the case 
that the current logic will not follow the stack of an unmounted Virtual 
thread? If so that seems wrong - especially if a mounted VT would find those 
objects. A VT is not a GC root but now I'm unsure exactly what that means.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13254#issuecomment-1504443345

Reply via email to