RFR: 8273608: Deadlock when jcmd of OnError attaches to itself [v7]

Xin Liu xliu at openjdk.java.net
Tue Oct 12 05:48:56 UTC 2021


On Tue, 12 Oct 2021 05:28:19 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> Xin Liu has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Revert JavaThreadInVMAndNative change.
>>   
>>   Only change the state to Native if current thread is Java Thread and it's in VM.
>>   Restore thread state after fork_and_exec() if it's changed.
>
> src/hotspot/share/runtime/interfaceSupport.inline.hpp line 215:
> 
>> 213: };
>> 214: 
>> 215: class JavaThreadInVMAndNative : public StackObj {
> 
> Shouldn't this have been removed again?

oh, yeah. sorry

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

PR: https://git.openjdk.java.net/jdk/pull/5590


More information about the hotspot-dev mailing list