Method java_lang_Throwable::fill_in_stack_trace uses variable cont without handler so it could be collected.
The method fill_in_stack_ calls "bt.push(method, bci, contScopeName, CHECK);"
https://github.com/lmesnik/loom/blob/fibers/src/hotspot/share/classfile/javaClasses.cpp#L2753
which calls expand
https://github.com/lmesnik/loom/blob/fibers/src/hotspot/share/classfile/javaClasses.cpp#L2353
were GC might happened and cont becomes invalid.
The method fill_in_stack_ calls "bt.push(method, bci, contScopeName, CHECK);"
https://github.com/lmesnik/loom/blob/fibers/src/hotspot/share/classfile/javaClasses.cpp#L2753
which calls expand
https://github.com/lmesnik/loom/blob/fibers/src/hotspot/share/classfile/javaClasses.cpp#L2353
were GC might happened and cont becomes invalid.
- duplicates
-
JDK-8240924 Several more places where naked oop to cont should be handled
- Closed
- relates to
-
JDK-8240924 Several more places where naked oop to cont should be handled
- Closed
-
JDK-8241329 Support execution of jtreg tests in virtual threads
- Resolved