-
Notifications
You must be signed in to change notification settings - Fork 58
8288754: GCC 12 fails to build zReferenceProcessor.cpp #47
Conversation
👋 Welcome back shade! A progress list of the required criteria for merging this PR into |
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.
Looks good.
(This thing should be more reasonably handled when
ShouldNotReachHere()
is
somehownonreturn
-ed, but Hotspot style doc is still undecided on this).
The problem with using [[noreturn]]
for assert/guarantee/ShouldNotReachHere
&etc is that they aren't currently noreturn, due to Debugging
and
(in non-product builds) SuppressErrorAt
. I've sometimes wondered if anyone
actually uses SuppressErrorAt
. But I haven't pursued the question because of
Debugging
, which seems to be involved in dealing with error handler
reentrancy or recursion or the like (I don't recall details).
@shipilev 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 4 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 |
Also, see the discussion in https://bugs.openjdk.org/browse/JDK-8065585 |
@stefank, do you agree with this patch? |
Yes, that seems to be a good fix. I would have preferred to say "Unknown" instead of "ERROR", but that could be changed later if you want to push. |
Oh, we can change that to |
/integrate |
Going to push as commit 834d92d.
Your commit was automatically rebased without conflicts. |
When compiling with GCC 12.1.1 (current in Fedora rawhide), the following warning-as-error is produced and breaks the build by default:
The problem is over-zealous compiler seeing
NULL
fromShouldNotReachHere()
block, and complaining about it. In this particular case, we can dodge this by returning a more reasonable constant on failure path.(This thing should be more reasonably handled when
ShouldNotReachHere()
is somehownonreturn
-ed, but Hotspot style doc is still undecided on this).Additional testing:
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk19 pull/47/head:pull/47
$ git checkout pull/47
Update a local copy of the PR:
$ git checkout pull/47
$ git pull https://git.openjdk.org/jdk19 pull/47/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 47
View PR using the GUI difftool:
$ git pr show -t 47
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk19/pull/47.diff