RFR: 8298610: Refactor archiving of ConstantPool::resolved_references() [v2]

Ioi Lam iklam at openjdk.org
Mon Jan 23 22:30:25 UTC 2023


> This is another prerequisite for [JDK-8296344](https://bugs.openjdk.org/browse/JDK-8296344).
> 
> Before this PR, when archiving the objArray of `ConstantPool::resolved_references()` 
> - We call `HeapShared::find_archived_heap_object()` to look up archived copies of the Strings.
> - We allocate a copy of the objArray inside a safepoint.
> 
> This violates the requirements [1] and [2] as stated in [JDK-8298600](https://bugs.openjdk.org/browse/JDK-8298600). 
> 
> After this PR, we no longer do the above.

Ioi Lam has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:

 - Merge branch 'master' into 8298610-refactor-archiving-of-constantpool-resolved-references
 - 8298610: Refactor archiving of ConstantPool::resolved_references()

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/12021/files
  - new: https://git.openjdk.org/jdk/pull/12021/files/67fee222..ee9c9b06

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=12021&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=12021&range=00-01

  Stats: 18157 lines in 1150 files changed: 9719 ins; 1966 del; 6472 mod
  Patch: https://git.openjdk.org/jdk/pull/12021.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12021/head:pull/12021

PR: https://git.openjdk.org/jdk/pull/12021


More information about the hotspot-runtime-dev mailing list