From 4cc6ad4e099b52c2d7a56904d07457f3ee9c0445 Mon Sep 17 00:00:00 2001 From: tajila Date: Wed, 20 Sep 2023 15:08:58 -0400 Subject: [PATCH] Register natives in ConstantPool init Depends on https://github.com/eclipse-openj9/openj9/pull/18169 Signed-off-by: tajila --- .../share/classes/jdk/internal/reflect/ConstantPool.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/java.base/share/classes/jdk/internal/reflect/ConstantPool.java b/src/java.base/share/classes/jdk/internal/reflect/ConstantPool.java index 46d2e48c848..9776692631d 100644 --- a/src/java.base/share/classes/jdk/internal/reflect/ConstantPool.java +++ b/src/java.base/share/classes/jdk/internal/reflect/ConstantPool.java @@ -22,6 +22,11 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ +/* + * =========================================================================== + * (c) Copyright IBM Corp. 2023, 2023 All Rights Reserved + * =========================================================================== + */ package jdk.internal.reflect; @@ -103,7 +108,10 @@ private static Tag valueOf(byte v) { // Internals only below this point // + private static native void registerNatives(); + static { + registerNatives(); Reflection.registerFieldsToFilter(ConstantPool.class, new String[] { "constantPoolOop" }); }