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 <[email protected]>
  • Loading branch information
tajila committed Sep 20, 2023
1 parent 78dd2a2 commit b47823a
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +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;

import java.lang.reflect.*;
Expand Down Expand Up @@ -103,8 +107,9 @@ private static Tag valueOf(byte v) {
//---------------------------------------------------------------------------
// Internals only below this point
//

private static native void registerNatives();
static {
registerNatives();
Reflection.registerFieldsToFilter(ConstantPool.class, Set.of("constantPoolOop"));
}

Expand Down

0 comments on commit b47823a

Please sign in to comment.