Skip to content

Commit

Permalink
Merge pull request ibmruntimes#716 from tajila/origin
Browse files Browse the repository at this point in the history
Register natives in ConstantPool init
  • Loading branch information
keithc-ca authored Sep 22, 2023
2 parents 7da7629 + 4cc6ad4 commit 18c8757
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 18c8757

Please sign in to comment.