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

8322657: CDS filemap fastdebug assert while loading Graal CE Polyglot in isolated classloader #17275

Closed

Conversation

calvinccheung
Copy link
Member

@calvinccheung calvinccheung commented Jan 5, 2024

Please review this small fix for skipping the non-existent SharedClassPathEntry in FileMapInfo::get_module_shared_path_index.
Please refer to the bug report for more details.

Passed tiers 1 - 4 testing, including the new test.


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-8322657: CDS filemap fastdebug assert while loading Graal CE Polyglot in isolated classloader (Bug - P3)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 17275

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

Using diff file

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

Webrev

Link to Webrev Comment

@calvinccheung
Copy link
Member Author

/label add hotspot-runtime

@calvinccheung calvinccheung marked this pull request as ready for review January 5, 2024 05:09
@bridgekeeper
Copy link

bridgekeeper bot commented Jan 5, 2024

👋 Welcome back ccheung! 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 openjdk bot added rfr Pull request is ready for review hotspot-runtime hotspot-runtime-dev@openjdk.org labels Jan 5, 2024
@openjdk
Copy link

openjdk bot commented Jan 5, 2024

@calvinccheung
The hotspot-runtime label was successfully added.

@mlbridge
Copy link

mlbridge bot commented Jan 5, 2024

Webrevs

@stevenschlansker
Copy link
Contributor

Thank you! If all goes well, it'd be nice to have this backported to 22 :)

Copy link
Contributor

@matias9927 matias9927 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! If you think it's worth addressing I just have one comment.

public class DefineModuleApp {
public static void main(String[] args) throws Throwable {
if (args.length != 2) {
throw new RuntimeException("DefineModuleApp expects 2 args but saw only " + args.length);
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor nit: "only" is probably unnecessary in the exception message since you could technically pass more than 2 args.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. I've removed the "only" in the exception message.

@calvinccheung
Copy link
Member Author

Thank you! If all goes well, it'd be nice to have this backported to 22 :)

Sure, we will backport the fix into 22 after it's been integrated and tested in the mainline.

Copy link
Member

@dholmes-ora dholmes-ora left a comment

Choose a reason for hiding this comment

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

Seems fine. Thanks

@openjdk
Copy link

openjdk bot commented Jan 8, 2024

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

8322657: CDS filemap fastdebug assert while loading Graal CE Polyglot in isolated classloader

Reviewed-by: matsaave, dholmes

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

  • 61ebe3b: 8323032: OptimizedModuleHandlingTest failed in dynamic CDS archive mode
  • ca9635d: 8322759: Eliminate -Wparentheses warnings in compiler code
  • 8a4dc79: 8274300: Address dsymutil warning by excluding platform specific files
  • d78e8da: 8322545: Declare newInsets as static in ThemeReader.cpp
  • 24823ba: 8323095: Expand TraceOptoParse block output abbreviations
  • d47393b: 8320128: Clean up Parse constructor for OSR
  • 387828a: 8322980: Debug agent's dumpThread() API should update thread's name before printing it
  • c4a83bd: 8323086: Shenandoah: Heap could be corrupted by oom during evacuation
  • 827c71d: 8310190: C2 SuperWord: AlignVector is broken, generates misaligned packs
  • 2acb5bd: 8322790: RISC-V: Tune costs for shuffles with no conversion
  • ... and 20 more: https://git.openjdk.org/jdk/compare/631a9f60f30fe298791aa953fa573001127ff58a...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.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Jan 8, 2024
@calvinccheung
Copy link
Member Author

Thanks @matias9927 and @dholmes-ora for the reviews.

/integrate

@openjdk
Copy link

openjdk bot commented Jan 8, 2024

Going to push as commit 841ab48.
Since your change was applied there have been 30 commits pushed to the master branch:

  • 61ebe3b: 8323032: OptimizedModuleHandlingTest failed in dynamic CDS archive mode
  • ca9635d: 8322759: Eliminate -Wparentheses warnings in compiler code
  • 8a4dc79: 8274300: Address dsymutil warning by excluding platform specific files
  • d78e8da: 8322545: Declare newInsets as static in ThemeReader.cpp
  • 24823ba: 8323095: Expand TraceOptoParse block output abbreviations
  • d47393b: 8320128: Clean up Parse constructor for OSR
  • 387828a: 8322980: Debug agent's dumpThread() API should update thread's name before printing it
  • c4a83bd: 8323086: Shenandoah: Heap could be corrupted by oom during evacuation
  • 827c71d: 8310190: C2 SuperWord: AlignVector is broken, generates misaligned packs
  • 2acb5bd: 8322790: RISC-V: Tune costs for shuffles with no conversion
  • ... and 20 more: https://git.openjdk.org/jdk/compare/631a9f60f30fe298791aa953fa573001127ff58a...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Jan 8, 2024
@openjdk openjdk bot closed this Jan 8, 2024
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Jan 8, 2024
@openjdk
Copy link

openjdk bot commented Jan 8, 2024

@calvinccheung Pushed as commit 841ab48.

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

@calvinccheung calvinccheung deleted the 8322657-filemap-assert branch January 8, 2024 23:54
@calvinccheung
Copy link
Member Author

/backport jdk22

@openjdk
Copy link

openjdk bot commented Jan 16, 2024

@calvinccheung the backport was successfully created on the branch backport-calvinccheung-841ab487 in my personal fork of openjdk/jdk22. To create a pull request with this backport targeting openjdk/jdk22:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit 841ab487 from the openjdk/jdk repository.

The commit being backported was authored by Calvin Cheung on 8 Jan 2024 and was reviewed by Matias Saavedra Silva and David Holmes.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk22:

$ git fetch https://github.com/openjdk-bots/jdk22.git backport-calvinccheung-841ab487:backport-calvinccheung-841ab487
$ git checkout backport-calvinccheung-841ab487
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk22.git backport-calvinccheung-841ab487

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot-runtime hotspot-runtime-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

4 participants