src/share/vm/prims/unsafe.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 6817525 Sdiff src/share/vm/prims

src/share/vm/prims/unsafe.cpp

Print this page




1543         }
1544         env->ExceptionClear();
1545       }
1546     }
1547     {
1548       env->RegisterNatives(unsafecls, memcopy_methods, sizeof(memcopy_methods)/sizeof(JNINativeMethod));
1549       if (env->ExceptionOccurred()) {
1550         if (PrintMiscellaneous && (Verbose || WizardMode)) {
1551           tty->print_cr("Warning:  SDK 1.7 Unsafe.copyMemory not found.");
1552         }
1553         env->ExceptionClear();
1554         env->RegisterNatives(unsafecls, memcopy_methods_15, sizeof(memcopy_methods_15)/sizeof(JNINativeMethod));
1555         if (env->ExceptionOccurred()) {
1556           if (PrintMiscellaneous && (Verbose || WizardMode)) {
1557             tty->print_cr("Warning:  SDK 1.5 Unsafe.copyMemory not found.");
1558           }
1559           env->ExceptionClear();
1560         }
1561       }
1562     }
1563     if (AnonymousClasses) {
1564       env->RegisterNatives(unsafecls, anonk_methods, sizeof(anonk_methods)/sizeof(JNINativeMethod));
1565       if (env->ExceptionOccurred()) {
1566         if (PrintMiscellaneous && (Verbose || WizardMode)) {
1567           tty->print_cr("Warning:  SDK 1.7 Unsafe.defineClass (anonymous version) not found.");
1568         }
1569         env->ExceptionClear();
1570       }
1571     }
1572     int status = env->RegisterNatives(unsafecls, methods, sizeof(methods)/sizeof(JNINativeMethod));
1573     if (env->ExceptionOccurred()) {
1574       if (PrintMiscellaneous && (Verbose || WizardMode)) {
1575         tty->print_cr("Warning:  SDK 1.6 version of Unsafe not found.");
1576       }
1577       env->ExceptionClear();
1578       // %%% For now, be backward compatible with an older class:
1579       status = env->RegisterNatives(unsafecls, methods_15, sizeof(methods_15)/sizeof(JNINativeMethod));
1580     }
1581     if (env->ExceptionOccurred()) {
1582       if (PrintMiscellaneous && (Verbose || WizardMode)) {
1583         tty->print_cr("Warning:  SDK 1.5 version of Unsafe not found.");


1543         }
1544         env->ExceptionClear();
1545       }
1546     }
1547     {
1548       env->RegisterNatives(unsafecls, memcopy_methods, sizeof(memcopy_methods)/sizeof(JNINativeMethod));
1549       if (env->ExceptionOccurred()) {
1550         if (PrintMiscellaneous && (Verbose || WizardMode)) {
1551           tty->print_cr("Warning:  SDK 1.7 Unsafe.copyMemory not found.");
1552         }
1553         env->ExceptionClear();
1554         env->RegisterNatives(unsafecls, memcopy_methods_15, sizeof(memcopy_methods_15)/sizeof(JNINativeMethod));
1555         if (env->ExceptionOccurred()) {
1556           if (PrintMiscellaneous && (Verbose || WizardMode)) {
1557             tty->print_cr("Warning:  SDK 1.5 Unsafe.copyMemory not found.");
1558           }
1559           env->ExceptionClear();
1560         }
1561       }
1562     }
1563     if (EnableInvokeDynamic) {
1564       env->RegisterNatives(unsafecls, anonk_methods, sizeof(anonk_methods)/sizeof(JNINativeMethod));
1565       if (env->ExceptionOccurred()) {
1566         if (PrintMiscellaneous && (Verbose || WizardMode)) {
1567           tty->print_cr("Warning:  SDK 1.7 Unsafe.defineClass (anonymous version) not found.");
1568         }
1569         env->ExceptionClear();
1570       }
1571     }
1572     int status = env->RegisterNatives(unsafecls, methods, sizeof(methods)/sizeof(JNINativeMethod));
1573     if (env->ExceptionOccurred()) {
1574       if (PrintMiscellaneous && (Verbose || WizardMode)) {
1575         tty->print_cr("Warning:  SDK 1.6 version of Unsafe not found.");
1576       }
1577       env->ExceptionClear();
1578       // %%% For now, be backward compatible with an older class:
1579       status = env->RegisterNatives(unsafecls, methods_15, sizeof(methods_15)/sizeof(JNINativeMethod));
1580     }
1581     if (env->ExceptionOccurred()) {
1582       if (PrintMiscellaneous && (Verbose || WizardMode)) {
1583         tty->print_cr("Warning:  SDK 1.5 version of Unsafe not found.");
src/share/vm/prims/unsafe.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File