8298612: Refactor archiving of java String objects#12173
8298612: Refactor archiving of java String objects#12173iklam wants to merge 7 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back iklam! A progress list of the required criteria for merging this PR into |
|
@iklam 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 no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
|
Thanks @calvinccheung for the review. |
|
Going to push as commit 1ff4646.
Your commit was automatically rebased without conflicts. |
This is the last prerequisite PR for JDK-8296344 (Remove dependency on G1 for writing the CDS archive heap).
The old
StringTable::write_to_archive()violates requirements [1] and [2] as stated in JDK-8298600.In the new implementation, copying of strings into the archive has been moved inside of heapShared.cpp. Now we no longer expose the
HeapShared::archive_object()API. This addresses requirement [1].Also, we no longer hand-assemble the String object and its internal
valuearray. Instead, we useHeapShared::archive_reachable_objects_fromto recursively copy thevalue. This addresses requirement [2].Test: tiers 1-4.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/12173/head:pull/12173$ git checkout pull/12173Update a local copy of the PR:
$ git checkout pull/12173$ git pull https://git.openjdk.org/jdk pull/12173/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 12173View PR using the GUI difftool:
$ git pr show -t 12173Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/12173.diff