RFR JDK-8209605: com/sun/jdi/BreakpointWithFullGC.java fails with ZGC
David Holmes
david.holmes at oracle.com
Tue Aug 21 01:29:44 UTC 2018
Hi Alex,
On 21/08/2018 8:24 AM, Alex Menkov wrote:
> Hi all,
>
> please review a fix for
> https://bugs.openjdk.java.net/browse/JDK-8209605
> webrev:
> http://cr.openjdk.java.net/~amenkov/sh2java/step1_zgc/webrev/
>
> The fix:
> - updates the fix so it works as original shell test:
> - drops "-Xmx32m" argument for debuggee (for shell test default jtreg
> -Xmx512m was effective);
Okay. I don't think you need the historical commentary though - the
information in the bug report is sufficient.
> - drops requirement for "Pause Full (System.gc())" (different GCs use
> different logging, original test does not require it);
Okay .
> - fixes "ArrayIndexOutOfBoundsException: Index 0 out of bounds for
> length 0". The cause of the issue is String.split(sep), which can
> returns zero-length array;
Okay.
> - improve error handling - debuggee must be terminated if jdb execution
> fails.
For this part I suggest:
catch (Error | RuntimeException ex)
so that, for example, OOME also triggers debuggee shutdown.
Thanks,
David
>
> --alex
More information about the serviceability-dev
mailing list