Skip to content

Commit

Permalink
Register natives in ConstantPool init
Browse files Browse the repository at this point in the history
Depends on eclipse-openj9/openj9#18169

Signed-off-by: tajila <atobia@ca.ibm.com>
  • Loading branch information
tajila committed Sep 22, 2023
1 parent cfe6941 commit 4cc6ad4
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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" });
}

Expand Down

0 comments on commit 4cc6ad4

Please sign in to comment.