Skip to content
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

JDK-8319784: VM crash during heap dump after JDK-8287061 #16622

Closed
wants to merge 4 commits into from

Conversation

JohnTortugo
Copy link
Contributor

@JohnTortugo JohnTortugo commented Nov 11, 2023

This fixes an incorrect assert in debugInfo.hpp. The assert is incorrect because this method may be called before rematerialization of the ObjectValue takes place, and therefore, _selected will be nullptr. This pull request patches the method to just return Handle() => nullptr if the rematerialization of the object hasn't taken place yet. This is the same behavior used by scalar-replaced objects not participating in merges.

I added a test to reproduce a scenario where the assert was causing a problem.

Tested on Ubuntu/MacOS/Windows x86_64 tier1-4.


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-8319784: VM crash during heap dump after JDK-8287061 (Bug - P2)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 16622

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

Using diff file

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

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 11, 2023

👋 Welcome back cslucas! 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 Nov 11, 2023

@JohnTortugo 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 Nov 11, 2023
@JohnTortugo JohnTortugo changed the title Return null handle if _selected == nullptr. JDK-8319784: VM crash during heap dump after JDK-8287061 Nov 11, 2023
@JohnTortugo JohnTortugo marked this pull request as ready for review November 14, 2023 00:21
@openjdk openjdk bot added the rfr Pull request is ready for review label Nov 14, 2023
@mlbridge
Copy link

mlbridge bot commented Nov 14, 2023

Webrevs

Copy link
Contributor

@vnkozlov vnkozlov left a comment

Choose a reason for hiding this comment

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

Looks good. You need second review.

@openjdk
Copy link

openjdk bot commented Nov 14, 2023

@JohnTortugo 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:

8319784: VM crash during heap dump after JDK-8287061

Reviewed-by: kvn, thartmann, shade

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 100 new commits pushed to the master branch:

  • 6e86904: 8319973: AArch64: Save and restore FPCR in the call stub
  • 04fd17e: 8320410: Reflow markdown in building.md
  • 7f23110: 8319928: Exceptions thrown by cleanup actions should be handled correctly
  • a6098e4: 8320280: RISC-V: Avoid passing t0 as temp register to MacroAssembler::lightweight_lock/unlock
  • 60c8d9c: 8320300: Adjust hs_err output in malloc/mmap error cases
  • 9f6a4a3: 8320386: Remove java/nio/channels/vthread/BlockingChannelOps.java#direct-register from ProblemList
  • db1d823: 8320168: handle setsocktopt return values
  • 6c5e15c: 8316557: Make fields final in 'sun.util' package
  • de51aa1: 8283214: [macos] Screen magnifier does not show the magnified text for JcomboBox
  • 179f505: 8320361: Doc error in RemoteRecordingStream.java
  • ... and 90 more: https://git.openjdk.org/jdk/compare/ea1ffa34192448317ce9a61a3588b0dee3a2ef44...master

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 (@vnkozlov, @TobiHartmann, @shipilev) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Nov 14, 2023
Copy link
Member

@TobiHartmann TobiHartmann left a 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. I've re-submitted testing and will report back once it passed.

@TobiHartmann
Copy link
Member

All tests passed.

Copy link
Member

@shipilev shipilev left a comment

Choose a reason for hiding this comment

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

Good. I have just a few cosmetic suggestions.

JohnTortugo and others added 2 commits November 20, 2023 08:47
@JohnTortugo
Copy link
Contributor Author

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Nov 20, 2023
@openjdk
Copy link

openjdk bot commented Nov 20, 2023

@JohnTortugo
Your change (at version 80b7e0a) is now ready to be sponsored by a Committer.

@TobiHartmann
Copy link
Member

/sponsor

@openjdk
Copy link

openjdk bot commented Nov 21, 2023

Going to push as commit 3544d2d.
Since your change was applied there have been 113 commits pushed to the master branch:

  • 303757b: 8319879: Stress mode to randomize incremental inlining decision
  • 099a8f5: 8308144: Uncontrolled memory consumption in SSLFlowDelegate.Reader
  • fcb4df2: 8320192: SHAKE256 does not work correctly if n >= 137
  • 2b4e991: 8320208: Update Public Suffix List to b5bf572
  • 6b96bb6: 8319777: Zero: Support 8-byte cmpxchg
  • 020c900: 8320052: Zero: Use __atomic built-ins for atomic RMW operations
  • 30d8953: 8275889: Search dialog has redundant scrollbars
  • cee54de: 8319988: Wrong heading for inherited nested classes
  • 32098ce: 8320348: test/jdk/java/io/File/GetAbsolutePath.windowsDriveRelative fails if working directory is not on drive C
  • a2c0fa6: 8320372: test/jdk/sun/security/x509/DNSName/LeadingPeriod.java validity check failed
  • ... and 103 more: https://git.openjdk.org/jdk/compare/ea1ffa34192448317ce9a61a3588b0dee3a2ef44...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Nov 21, 2023
@openjdk openjdk bot closed this Nov 21, 2023
@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Nov 21, 2023
@openjdk openjdk bot removed rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Nov 21, 2023
@openjdk
Copy link

openjdk bot commented Nov 21, 2023

@TobiHartmann @JohnTortugo Pushed as commit 3544d2d.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

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 integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

4 participants