-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8286681: ShenandoahControlThread::request_gc misses the case of GCCause::_codecache_GC_threshold #8691
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
Conversation
…cache_GC_threshold
|
👋 Welcome back jiefu! A progress list of the required criteria for merging this PR into |
|
@DamonFool The following labels 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 lists. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
| * -Xbatch | ||
| * -XX:+UseShenandoahGC | ||
| * TestIntrinsics | ||
| */ |
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.
Is this needed? The parameters looks the same as the first test description so if you are testing with +ShenandoahGC then it will run already.
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.
Without -XX:+UseShenandoahGC, this bug wouldn't be exposed.
What do you mean by if you are testing with +ShenandoahGC then it will run already?
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 assume you are running the tests with:
make run-tests TEST_OPTS_JAVA_OPTIONS="-XX:+UseShenandoahGC"
in which case, all of the tests you select to run will be run with that GC.
What you have is not wrong but wouldn't be a better to add a new test to test/hotspot/jtreg/gc rather than relying on test in test/jdk/java/foreign?
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 assume you are running the tests with: make run-tests TEST_OPTS_JAVA_OPTIONS="-XX:+UseShenandoahGC" in which case, all of the tests you select to run will be run with that GC.
Yes, you're right.
What you have is not wrong but wouldn't be a better to add a new test to test/hotspot/jtreg/gc rather than relying on test in test/jdk/java/foreign?
I would suggest reusing the existing test in java/foreign.
This is because this bug was first triggered after Implementation of Foreign Function & Memory API (Preview) integration.
And I don't want a copy-paste code duplication in a new test file.
Thanks.
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 I agree with @AlanBateman - in the sense that this seems to go down a slippery slope where every test would need to be executed against all possible GCs. AFAIK, there are no other foreign tests doing this.
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 I agree with @AlanBateman - in the sense that this seems to go down a slippery slope where every test would need to be executed against all possible GCs. AFAIK, there are no other foreign tests doing this.
I think it's a waste of time to write a separate test for this bug.
I can't understand why you are against adding one more test config in the foreign test.
Yes, it caught the bug in ShenandoahGC but who knows it wouldn't find some other bugs in the foreign api in the future.
If you are still against the newly added test config, I can revert the test change.
Thanks.
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.
My comment seems to have never made it through. The problem with what your are doing is two-fold:
- When running the test suite specifically to test xGC for whatever x you are now forcing a test run for Shenandoah.
- When x is Shenandoah then you run this test twice.
You don't need a config just to run this with Shenandoah - you run the test suite with Shenandoah.
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 test change had been reverted.
Thanks.
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
|
@DamonFool 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 7 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
Thanks @zhengyu123 for the review. |
|
Going to push as commit 9eb15c9.
Your commit was automatically rebased without conflicts. |
|
@DamonFool Pushed as commit 9eb15c9. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Hi all,
Some tests fail with Shenandoah GC after JDK-8282191.
The reason is that the assert in
ShenandoahControlThread::request_gcmisses the case ofGCCause::_codecache_GC_threshold.It would be better to fix it.
Thanks.
Best regards,
Jie
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/8691/head:pull/8691$ git checkout pull/8691Update a local copy of the PR:
$ git checkout pull/8691$ git pull https://git.openjdk.java.net/jdk pull/8691/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 8691View PR using the GUI difftool:
$ git pr show -t 8691Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/8691.diff