On Mon, 17 Jul 2023 02:13:03 GMT, Yi Yang <yy...@openjdk.org> wrote: > Because I need the overloaded check is_AttachListener_thread(), which can > avoid using the VM thread to execute the dump file merge as much as possible.
I'm unclear what the set of candidate threads is for executing the code that does the `is_AttachListener_thread()` test. Can you not just use `!thread->is_VM_thread()` to keep it out of the VMThread? ------------- PR Comment: https://git.openjdk.org/jdk/pull/13667#issuecomment-1637349672