8333108: Update vmTestbase/nsk/share/DebugeeProcess.java to don't use finalization#19437
8333108: Update vmTestbase/nsk/share/DebugeeProcess.java to don't use finalization#19437lmesnik wants to merge 1 commit intoopenjdk:masterfrom
Conversation
|
👋 Welcome back lmesnik! A progress list of the required criteria for merging this PR into |
|
@lmesnik This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 73 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
plummercj
left a comment
There was a problem hiding this comment.
I verified that debuggee process is killed before test finishes. (Just by printing it's status.)
What about when the test fails?
| } | ||
|
|
||
| int code = debuggee.waitFor(); | ||
| if (code != 0) { |
There was a problem hiding this comment.
Why do the other tests check for Consts.JCK_STATUS_BASE, but here we check for 0?
There was a problem hiding this comment.
This is a vm exit command test.
The test explicitly calls
' vm.exit(0);'
in line 157. So exit code is 0 and not "standard" 95.
|
/integrate |
|
Going to push as commit b3e29db.
Your commit was automatically rebased without conflicts. |
The
test/hotspot/jtreg/vmTestbase/nsk/share/jpda/DebugeeProcess.java
uses cleanup() to kill debuggee process.
However, most tests kill the debuggee process explicitly. I verified that debuggee process is killed before test finishes. (Just by printing it's status.)
The fix adds a few checks debuggee.waitFor() int tests that didn't check debuggee process code.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/19437/head:pull/19437$ git checkout pull/19437Update a local copy of the PR:
$ git checkout pull/19437$ git pull https://git.openjdk.org/jdk.git pull/19437/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 19437View PR using the GUI difftool:
$ git pr show -t 19437Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/19437.diff
Webrev
Link to Webrev Comment