-
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
8318455: Fix the compiler/sharedstubs/SharedTrampolineTest.java and SharedStubToInterpTest.java #16277
8318455: Fix the compiler/sharedstubs/SharedTrampolineTest.java and SharedStubToInterpTest.java #16277
Conversation
…haredStubToInterpTest.java
👋 Welcome back enikitin! A progress list of the required criteria for merging this PR into |
@lepestock 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. |
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 to me.
@lepestock 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 19 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 (@TobiHartmann, @shipilev, @eastig) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
/integrate |
@lepestock |
@@ -49,6 +50,7 @@ public class SharedTrampolineTest { | |||
private static void runTest(String test) throws Exception { | |||
String testClassName = SharedTrampolineTest.class.getName() + "$" + test; | |||
ArrayList<String> command = new ArrayList<String>(); | |||
command.add("-XX:-TieredCompilation"); // C2-compiler only |
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.
It is not quite clear to me why we should not pass args[0]
here, like we do in another test fix.
Would this test ever make sense to run with different compiler, e.g. C1?
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.
Superficially, it looks like the test is optimised for C2. But let's ask @eastig for help.
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.
I agree with Aleksey we should use args[0]
. It looks like we will need to add a test for C1.
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.
I agree with Aleksey we should use args[0]. It looks like we will need to add a test for C1.
Got it, thank you. Fixed.
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.
Are we adding C1 version in this PR as well, or in a separate one?
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.
I think it is better to add a new test with a separate PR.
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.
Created https://bugs.openjdk.org/browse/JDK-8318681 to add tests for C1.
@lepestock this pull request can not be integrated into git checkout JDK-8318455/fix_vm_flags_in_compiler_tests/pub
git fetch https://git.openjdk.org/jdk.git master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
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.
All right then! Looks fine.
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.
lgtm
/integrate |
@lepestock |
/sponsor |
Going to push as commit 4a16d11.
Your commit was automatically rebased without conflicts. |
@TobiHartmann @lepestock Pushed as commit 4a16d11. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
A continuation of #16258.
Said tests try to control the compilers used via arguments passed to subprocesses' they create. The JDK-8314838 added support for additional forwarding of the JTReg javaoptions to the subprocesses, but broke the original arguments passing. They are now passed to the enclosing driver and simply ignored by ProcessTools.createTestJvm. As a result, proper compiler may be not chosen on subprocess start, etc. This PR fixes that.
Testing: both tests run in CI, with additional arguments (tests were ignored, as expected) and without (passed).
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/16277/head:pull/16277
$ git checkout pull/16277
Update a local copy of the PR:
$ git checkout pull/16277
$ git pull https://git.openjdk.org/jdk.git pull/16277/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 16277
View PR using the GUI difftool:
$ git pr show -t 16277
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/16277.diff
Webrev
Link to Webrev Comment