Integrated: 8298610: Refactor archiving of ConstantPool::resolved_references()

Ioi Lam iklam at openjdk.org
Tue Jan 24 04:10:13 UTC 2023


On Tue, 17 Jan 2023 05:39:13 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: afd5921f
Author:    Ioi Lam <iklam at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/afd5921f1cc5b9a05a7ec3a3690a06bb5e05d23a
Stats:     47 lines in 6 files changed: 20 ins; 10 del; 17 mod

8298610: Refactor archiving of ConstantPool::resolved_references()

Reviewed-by: dholmes, ccheung

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

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


More information about the hotspot-runtime-dev mailing list