Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
/ jdk22u Public archive

8330027: Identity hashes of archived objects must be based on a reproducible random seed #194

Closed
wants to merge 1 commit into from

Conversation

tstuefe
Copy link
Member

@tstuefe tstuefe commented May 10, 2024

This fixes an issue with CDS archive reproducibility that can happen under rare circumstances. See original JBS issue for details.

I had to manually resolve the hunk in src/hotspot/share/cds/heapShared.cpp because both

  • 8251330: Reorder CDS archived heap to speed up relocation
  • 8329431: Improve speed of writing CDS heap objects
    were missing.

Resolve was trivial.


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
  • JDK-8330027 needs maintainer approval

Issue

  • JDK-8330027: Identity hashes of archived objects must be based on a reproducible random seed (Bug - P4 - Approved)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 194

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk22u/pull/194.diff

Webrev

Link to Webrev Comment

…ducible random seed

Reviewed-by: ccheung, iklam
@bridgekeeper
Copy link

bridgekeeper bot commented May 10, 2024

👋 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 May 10, 2024

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

8330027: Identity hashes of archived objects must be based on a reproducible random seed

Reviewed-by: phh

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 1 new commit pushed to the master branch:

  • 7629aa6: 8322726: C2: Unloaded signature class kills argument value

Please see this link for an up-to-date comparison between the source branch of this pull request and the master branch.
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 changed the title Backport 9f43ce5a725b212cec0f3cd17491c4bada953676 8330027: Identity hashes of archived objects must be based on a reproducible random seed May 10, 2024
@openjdk
Copy link

openjdk bot commented May 10, 2024

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk bot added the backport label May 10, 2024
@tstuefe tstuefe marked this pull request as ready for review May 10, 2024 14:54
@openjdk openjdk bot added the rfr Pull request is ready for review label May 10, 2024
@mlbridge
Copy link

mlbridge bot commented May 10, 2024

Webrevs

@openjdk
Copy link

openjdk bot commented May 11, 2024

⚠️ @tstuefe This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@tstuefe
Copy link
Member Author

tstuefe commented May 11, 2024

/approval request This fixes an issue with CDS archive reproducibility that can happen under rare circumstances. Since CDS reproducibility issues are time consuming to debug and the fix is simple and low risk, I would like to see this issue fixed in JDK 22.

@openjdk
Copy link

openjdk bot commented May 11, 2024

@tstuefe
8330027: The approval request has been created successfully.

@openjdk openjdk bot added approval ready Pull request is ready to be integrated and removed approval labels May 11, 2024
@tstuefe
Copy link
Member Author

tstuefe commented May 14, 2024

Got approval.

/integrate

@openjdk
Copy link

openjdk bot commented May 14, 2024

Going to push as commit 9b3187f.
Since your change was applied there have been 4 commits pushed to the master branch:

  • 9486b7c: 8324243: Compilation failures in java.desktop module with gcc 14
  • 2ec7dbf: 8331352: error: template-id not allowed for constructor/destructor in C++20
  • ccef462: 8328997: Remove unnecessary template parameter lists in GrowableArray
  • 7629aa6: 8322726: C2: Unloaded signature class kills argument value

Your commit was automatically rebased without conflicts.

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

openjdk bot commented May 14, 2024

@tstuefe Pushed as commit 9b3187f.

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

2 participants