-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
8339871: serviceability/sa/TestDebugInfoDecode.java should be driver #21519
Conversation
👋 Welcome back rsunderbabu! A progress list of the required criteria for merging this PR into |
@rsunderbabu 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 53 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. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@plummercj, @lmesnik) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
@rsunderbabu The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
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.
We have 3 processes here:
- The test.
- The SA Debuggee process spawned by the test (LingeredApp)
- The SA "tool", also spawned by the test.
(1) and (2) will automatically get the default test args, which will include -Xcomp if it is a -Xcomp test task. (3) will not get the default test args since it is spawned with createLimitedTestJavaProcessBuilder(), which is likely what we want. The only process that needs to be run with -Xcomp (and any other test args) is (2) the debuggee process, but I don't see why we don't just allow it to get -Xcomp when run as part of a -Xcomp test task, and not have -Xcomp otherwise.
It doesn't appear that -Xcomp on the debuggee is a requirement for this test, because in the past it has not been explicitly run with -Xcomp. The changes in the PR get rid of test runs where the debuggee does not use -Xcmp, and also continue to force -Xcomp on the test process, which is unnecessary.
If we really only want the debuggee run with -Xcomp, then we should probably limit this test to only support -Xcomp test runs. So that means adding @requires vm.compMode == "Xcomp"
. It also means getting rid of -Xcomp elsewhere in the test. I'm not sure of the reason for -Xmx1g
. Maybe @tkrodriguez can explain.
I think another options is to have the test explicitly launch the debuggee with -Xcomp as is done in this PR, but also add @requires vm.flagless
. @lmesnik?
The -Xmx1g is probably just copied from ClhsdbPrintAll.java so it could probably be dropped. Since the point of this test is to exercise nmethod debug info decoding we want LingeredApp to run with Xcomp so that the inspected process has nmethods. It doesn't matter if anything else is run with Xcomp so whatever accomplishes that seems fine. |
The only thing that is missed it change The adding -Xcomp in LingeredApp.startApp(theApp, "-Xmx1g", "-Xcomp"); The another thing to check (unrelated to the fix) is if test is executed in tier1 and should it be there. |
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.
Please check that test pass with options from CI.
/integrate |
@rsunderbabu |
/sponsor |
Going to push as commit d915ac2.
Your commit was automatically rebased without conflicts. |
@lmesnik @rsunderbabu Pushed as commit d915ac2. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Passing "-Xmx1g -Xcomp" to the LingeredApp.
Testing: tier1
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/21519/head:pull/21519
$ git checkout pull/21519
Update a local copy of the PR:
$ git checkout pull/21519
$ git pull https://git.openjdk.org/jdk.git pull/21519/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 21519
View PR using the GUI difftool:
$ git pr show -t 21519
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/21519.diff
Webrev
Link to Webrev Comment