< prev index next >

src/java.base/share/native/libverify/check_code.c

Print this page

        

@@ -84,10 +84,11 @@
 #include <assert.h>
 #include <limits.h>
 #include <stdlib.h>
 
 #include "jni.h"
+#include "jni_util.h"
 #include "jvm.h"
 #include "classfile_constants.h"
 #include "opcodes.in_out"
 
 /* On AIX malloc(0) and calloc(0, ...) return a NULL pointer, which is legal,

@@ -479,10 +480,15 @@
 static void print_flags(context_type *, flag_type, flag_type);
 static void print_formatted_fieldname(context_type *context, int index);
 static void print_formatted_methodname(context_type *context, int index);
 #endif
 
+/*
+ * Declare library specific JNI_Onload entry if static build
+ */
+DEF_STATIC_JNI_OnLoad
+
 void initialize_class_hash(context_type *context)
 {
     hash_table_type *class_hash = &(context->class_hash);
     class_hash->buckets = (hash_bucket_type **)
         calloc(MAX_HASH_ENTRIES / HASH_ROW_SIZE, sizeof(hash_bucket_type *));
< prev index next >