-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8351375: nsk/jvmti/ tests should fail when nsk_jvmti_setFailStatus() is called #24040
Conversation
…th code 97 if fails in unload phase
👋 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 180 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 |
Webrevs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix looks okay in general. I've posted one comment about typos and one question.
if (phase == JVMTI_PHASE_DEAD) { | ||
NSK_DISPLAY0("CompiledMethodLoad event recieved in dead phase"); | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Typos at L148: GetMethodNamme
=> GetMethodName
, is work
=> works
, phasem
=> phase
A suggestion is to reformulate the comment as below:
// GetMethodName works in live phase only so just exit if the event is generated too late
Also, I wonder if we want to abort/fail in all cases when phase == JVMTI_PHASE_DEAD
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I wonder if we want to abort/fail in all cases when phase == JVMTI_PHASE_DEAD.
I take it back. My suggestion does not look right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment fixed.
I haven't find in spec that event can't be generated in dead phase. So test should just ignore this event.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the update! LGTM.
/integrate |
Going to push as commit 334a1ee.
Your commit was automatically rebased without conflicts. |
There are a number of tier 5 failures after this change - filed JDK-8352652 |
The nsk_jvmti_setFailStatus() sometimes is called after test check results. In these cases the warning logs are generated and hide the real failure reasons. Also, I think it is a error-prone way to set and check error, since check might be just forgotten. Also, the test execution after failure might be incorrect and also make failure analysis harder.
So I think it makes sense to always fail when nsk_jvmti_setFailStatus() is called.
If this is going to work I'll rename it later and add add optional message to be more informative.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/24040/head:pull/24040
$ git checkout pull/24040
Update a local copy of the PR:
$ git checkout pull/24040
$ git pull https://git.openjdk.org/jdk.git pull/24040/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 24040
View PR using the GUI difftool:
$ git pr show -t 24040
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/24040.diff
Using Webrev
Link to Webrev Comment