Skip to content

Commit

Permalink
Merge pull request ibmruntimes#267 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 ae65ab9 + 462c8c6 commit a2a7584
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 @@ -104,7 +109,10 @@ 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 a2a7584

Please sign in to comment.