RFR: 8273608: Deadlock when jcmd of OnError attaches to itself [v4]
Xin Liu
xliu at openjdk.java.net
Wed Oct 6 00:25:11 UTC 2021
On Tue, 5 Oct 2021 18:30:31 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
>> Xin Liu has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Cleanup: remove a statment of debugging.
>
> test/hotspot/jtreg/runtime/ErrorHandling/TestOutOfMemoryErrorFromNIO.java line 59:
>
>> 57: StringBuilder after = new StringBuilder(jcmd);
>> 58: after.append(" %p");
>> 59: after.append(" GC.heap_dump a.hprof");
>
> Could be probably simplified to:
>
> String jcmd = JDKToolFinder.getJDKTool("jcmd");
> String before = jcmd + " %p Thread.print";
> String after = jcmd + " %p GC.heap_dump a.hprof;
make sense. it's better.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5590
More information about the hotspot-dev
mailing list