< prev index next >

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

Print this page
rev 12879 : 8136556: Add the ability to perform static builds of MacOSX x64 binaries
Reviewed-by: ihse, bdelsart, gadams, lfoltan, rriggs, hseigel, twisti

*** 84,93 **** --- 84,94 ---- #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,488 **** --- 480,494 ---- 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 >