< prev index next >

src/hotspot/share/prims/jni.cpp

Print this page

        

*** 3687,3697 **** void copy_jni_function_table(const struct JNINativeInterface_ *new_jni_NativeInterface) { assert(SafepointSynchronize::is_at_safepoint(), "must be at safepoint"); intptr_t *a = (intptr_t *) jni_functions(); intptr_t *b = (intptr_t *) new_jni_NativeInterface; for (uint i=0; i < sizeof(struct JNINativeInterface_)/sizeof(void *); i++) { ! Atomic::store(*b++, a++); } } void quicken_jni_functions() { // Replace Get<Primitive>Field with fast versions --- 3687,3697 ---- void copy_jni_function_table(const struct JNINativeInterface_ *new_jni_NativeInterface) { assert(SafepointSynchronize::is_at_safepoint(), "must be at safepoint"); intptr_t *a = (intptr_t *) jni_functions(); intptr_t *b = (intptr_t *) new_jni_NativeInterface; for (uint i=0; i < sizeof(struct JNINativeInterface_)/sizeof(void *); i++) { ! Atomic::store(a++, *b++); } } void quicken_jni_functions() { // Replace Get<Primitive>Field with fast versions
< prev index next >