RFR: JDK-8277056: Combining several C2 Print* flags asserts in xmlStream::pop_tag
Tobias Holenstein
duke at openjdk.java.net
Thu Apr 21 08:19:27 UTC 2022
On Thu, 21 Apr 2022 07:24:58 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:
> If the problem is the native --> VM transition while holding the tty lock, then how about if we enter VM mode first, then grab the tty lock?
Unfortunately, there are already `VM_ENTRY_MARK`'s for example in `dump_asm_on` -> `CallStaticJavaDirectNode::format` -> `CallStaticJavaDirectNode::format` -> `JVMState::print_method_with_lineno` -> `ciMethod:line_number_from_bci`. The `VM_ENTRY_MARK` requires the thread to be in native mode for the transition and cannot be called if it was already called before.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8203
More information about the hotspot-compiler-dev
mailing list