-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8265035: Remove unneeded exception check from refill_ic_stubs() #3436
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
👋 Welcome back pchilanomate! A progress list of the required criteria for merging this PR into |
/label add hotspot-runtime |
@pchilano |
/label remove hotspot-compiler |
@pchilano |
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 changes look good. Were regression tests run?
Thanks, Harold
@pchilano 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 11 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 |
|
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.
Hi Patricio,
Changes look good.
Though I wonder whether we even need the EXCEPTION_MARK?
Thanks,
David
Hi David, Thanks for looking at this.
I think it can be removed actually. The alternative could be to change it for assert(!HAS_PENDING_EXCEPTION, "there should be no pending exceptions") to only verify that there are no pending exceptions when entering refill_ic_stubs(). But I think that only makes sense if the following code can throw exceptions and you want to avoid overriding a possibly already pending one. So if you are okay too I can remove it. Thanks,
|
Mailing list message from David Holmes on hotspot-runtime-dev: On 13/04/2021 11:55 am, Patricio Chilano Mateo wrote:
You also need to manifest THREAD to use HAS_PENDING_EXCEPTION. I suspect I have no concerns with removing the EM if you want to. Thanks, |
Ok, I removed the EM. Thanks! Patricio |
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!
Thanks,
David
Thanks @hseigel and @dholmes-ora for the reviews! |
/integrate |
@pchilano Since your change was applied there have been 21 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 943503e. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Hi,
Please review this small fix. The HAS_PENDING_EXCEPTION check will always return false since EXCEPTION_MARK will check that there are no pending exceptions upon entering and VMThread::execute() doesn't throw exceptions.
The comment says that we could get a potential async exception, which is true, since the JT will be blocked waiting on VMOperation_lock. However delivering an async exception doesn't set the _pending_exception field, only additional fields (see JavaThread::send_thread_stop() -> set_pending_async_exception()) that will be later check in check_and_handle_async_exceptions() and only then _pending_exception will be set.
Thanks,
Patricio
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/3436/head:pull/3436
$ git checkout pull/3436
Update a local copy of the PR:
$ git checkout pull/3436
$ git pull https://git.openjdk.java.net/jdk pull/3436/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3436
View PR using the GUI difftool:
$ git pr show -t 3436
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/3436.diff