Re: RFR: 8269556: sun/tools/jhsdb/JShellHeapDumpTest.java fails with RuntimeException 'JShellToolProvider' missing from stdout/stderr [v2]

2021-12-10 Thread Chris Plummer
On Fri, 10 Dec 2021 21:05:38 GMT, Alex Menkov wrote: >> Chris Plummer has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Renamed isRetry to allowRetry. > > test/jdk/sun/tools/jhsdb/JShellHeapDumpTest.java line 112: > >> 110:

Re: RFR: 8269556: sun/tools/jhsdb/JShellHeapDumpTest.java fails with RuntimeException 'JShellToolProvider' missing from stdout/stderr [v2]

2021-12-10 Thread Alex Menkov
On Fri, 10 Dec 2021 20:30:41 GMT, Chris Plummer wrote: >> The test searches for "JShellToolProvider" in the main thread's stack trace, >> which is pulled from an SA heap dump. Typically the main thread is blocked >> in Object.wait(), so SA can determine its stack trace. However, the wait has

Re: RFR: 8269556: sun/tools/jhsdb/JShellHeapDumpTest.java fails with RuntimeException 'JShellToolProvider' missing from stdout/stderr [v2]

2021-12-10 Thread Chris Plummer
On Fri, 10 Dec 2021 12:22:22 GMT, Serguei Spitsyn wrote: > Hi Chris, > It looks good in general. I feel the parameter 'retry' is a little bit > confusing. It is possible to rename it to some to 'retriedOnce'. Another > approach would be to name it 'allowRetry' and revert the meaning of boolean

Re: RFR: 8269556: sun/tools/jhsdb/JShellHeapDumpTest.java fails with RuntimeException 'JShellToolProvider' missing from stdout/stderr [v2]

2021-12-10 Thread Chris Plummer
> The test searches for "JShellToolProvider" in the main thread's stack trace, > which is pulled from an SA heap dump. Typically the main thread is blocked in > Object.wait(), so SA can determine its stack trace. However, the wait has a > 100ms timeout, so the thread does periodically wake up