On Mon, 17 Oct 2022 11:13:55 GMT, Kevin Walls <kev...@openjdk.org> wrote:
>> There are a few changes we can make to better understand the LingeredApp >> test when it goes wrong: >> >> startAppExactJvmOpts() should not try and call finishApp unless the process >> isAlive, that just creates a misleading exception. >> >> waitAppReady() is really waitAppReadyOrCrashed(), and should not timeout >> immediately after the 1 second sleep, or we lose a second of our timeout >> value (not critical with a long timeout, but seems more honest). >> >> Show how long we waited when startup/crashing times out. >> >> Show how long a good startup takes, so we have a basic for comparison when >> it fails. >> >> Show if there are hs_err/core/mdmp files in the working directory after >> startup/crash attempt. >> >> Also, in open/test/lib/jdk/test/lib/util/CoreUtils.java: >> >> "Move core file" often seems unnecessary, core/mdmp usually being created in >> the current directory. But getCoreFileLocation() performs Files.move() which >> takes enough time to not be a no-op. > > Kevin Walls has updated the pull request incrementally with one additional > commit since the last revision: > > Reorder loop: success checks, timeout check, then sleep and recheck. Example output showing dump file size: LingeredApp startup took 3085ms Check for hs_err_pid/core/mdmp files: ./hs_err_pid22317.log 181656 bytes ./core.22317 4371398656 bytes Started LingeredApp with pid 22314 crashOutputString = [# # A fatal error ...etc... ------------- PR: https://git.openjdk.org/jdk/pull/10613