Print this page


Split Close
Expand all
Collapse all
          --- old/src/share/vm/prims/unsafe.cpp
          +++ new/src/share/vm/prims/unsafe.cpp
↓ open down ↓ 1552 lines elided ↑ open up ↑
1553 1553          env->ExceptionClear();
1554 1554          env->RegisterNatives(unsafecls, memcopy_methods_15, sizeof(memcopy_methods_15)/sizeof(JNINativeMethod));
1555 1555          if (env->ExceptionOccurred()) {
1556 1556            if (PrintMiscellaneous && (Verbose || WizardMode)) {
1557 1557              tty->print_cr("Warning:  SDK 1.5 Unsafe.copyMemory not found.");
1558 1558            }
1559 1559            env->ExceptionClear();
1560 1560          }
1561 1561        }
1562 1562      }
1563      -    if (AnonymousClasses) {
     1563 +    if (EnableInvokeDynamic) {
1564 1564        env->RegisterNatives(unsafecls, anonk_methods, sizeof(anonk_methods)/sizeof(JNINativeMethod));
1565 1565        if (env->ExceptionOccurred()) {
1566 1566          if (PrintMiscellaneous && (Verbose || WizardMode)) {
1567 1567            tty->print_cr("Warning:  SDK 1.7 Unsafe.defineClass (anonymous version) not found.");
1568 1568          }
1569 1569          env->ExceptionClear();
1570 1570        }
1571 1571      }
1572 1572      int status = env->RegisterNatives(unsafecls, methods, sizeof(methods)/sizeof(JNINativeMethod));
1573 1573      if (env->ExceptionOccurred()) {
↓ open down ↓ 26 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX