Skip to content

JDK-8318176: C2: dont assert in ~GraphKit if compilation had been interrupted#16203

Closed
tstuefe wants to merge 1 commit intoopenjdk:masterfrom
tstuefe:JDK-8318176-C2-dont-assert-in-GraphKit-if-compilation-had-been-interrupted
Closed

JDK-8318176: C2: dont assert in ~GraphKit if compilation had been interrupted#16203
tstuefe wants to merge 1 commit intoopenjdk:masterfrom
tstuefe:JDK-8318176-C2-dont-assert-in-GraphKit-if-compilation-had-been-interrupted

Conversation

@tstuefe
Copy link
Member

@tstuefe tstuefe commented Oct 16, 2023

If compilation had been interrupted, which may have happened e.g. due to reaching the node limit check, the using code may not have called GraphKit::transfer_exceptions_into_jvms() yet; in that case, we should not assert.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8318176: C2: dont assert in ~GraphKit if compilation had been interrupted (Bug - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/16203/head:pull/16203
$ git checkout pull/16203

Update a local copy of the PR:
$ git checkout pull/16203
$ git pull https://git.openjdk.org/jdk.git pull/16203/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 16203

View PR using the GUI difftool:
$ git pr show -t 16203

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/16203.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 16, 2023

👋 Welcome back stuefe! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Oct 16, 2023

@tstuefe The following label will be automatically applied to this pull request:

  • hotspot-compiler

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.

@openjdk openjdk bot added the hotspot-compiler hotspot-compiler-dev@openjdk.org label Oct 16, 2023
@tstuefe tstuefe marked this pull request as ready for review October 16, 2023 18:56
@openjdk openjdk bot added the rfr Pull request is ready for review label Oct 16, 2023
@mlbridge
Copy link

mlbridge bot commented Oct 16, 2023

Webrevs

#ifdef ASSERT
~GraphKit() {
assert(!has_exceptions(), "user must call transfer_exceptions_into_jvms");
assert(Compile::current()->failing() || !has_exceptions(), "user must call transfer_exceptions_into_jvms");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't you just call GraphKit::failing()?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly. I also realized this can be merged with JDK-8318183 (#16205), so I close this PR and fix the graphkit dtor over there.

@tstuefe tstuefe closed this Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hotspot-compiler hotspot-compiler-dev@openjdk.org rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

2 participants