src/share/vm/ci/ciEnv.cpp

Print this page
rev 5099 : dummy


1020         MutexUnlocker locker(MethodCompileQueue_lock);
1021         CompileBroker::handle_full_code_cache();
1022       }
1023     } else {
1024       nm->set_has_unsafe_access(has_unsafe_access);
1025       nm->set_has_wide_vectors(has_wide_vectors);
1026 
1027       // Record successful registration.
1028       // (Put nm into the task handle *before* publishing to the Java heap.)
1029       if (task() != NULL)  task()->set_code(nm);
1030 
1031       if (entry_bci == InvocationEntryBci) {
1032         if (TieredCompilation) {
1033           // If there is an old version we're done with it
1034           nmethod* old = method->code();
1035           if (TraceMethodReplacement && old != NULL) {
1036             ResourceMark rm;
1037             char *method_name = method->name_and_sig_as_C_string();
1038             tty->print_cr("Replacing method %s", method_name);
1039           }
1040           if (old != NULL ) {
1041             old->make_not_entrant();
1042           }
1043         }
1044         if (TraceNMethodInstalls ) {
1045           ResourceMark rm;
1046           char *method_name = method->name_and_sig_as_C_string();
1047           ttyLocker ttyl;
1048           tty->print_cr("Installing method (%d) %s ",
1049                         comp_level,
1050                         method_name);
1051         }
1052         // Allow the code to be executed
1053         method->set_code(method, nm);
1054       } else {
1055         if (TraceNMethodInstalls ) {
1056           ResourceMark rm;
1057           char *method_name = method->name_and_sig_as_C_string();
1058           ttyLocker ttyl;
1059           tty->print_cr("Installing osr method (%d) %s @ %d",
1060                         comp_level,
1061                         method_name,
1062                         entry_bci);
1063         }
1064         method->method_holder()->add_osr_nmethod(nm);
1065 
1066       }
1067     }
1068   }
1069   // JVMTI -- compiled method notification (must be done outside lock)
1070   if (nm != NULL) {
1071     nm->post_compiled_method_load_event();
1072   }
1073 
1074 }
1075 




1020         MutexUnlocker locker(MethodCompileQueue_lock);
1021         CompileBroker::handle_full_code_cache();
1022       }
1023     } else {
1024       nm->set_has_unsafe_access(has_unsafe_access);
1025       nm->set_has_wide_vectors(has_wide_vectors);
1026 
1027       // Record successful registration.
1028       // (Put nm into the task handle *before* publishing to the Java heap.)
1029       if (task() != NULL)  task()->set_code(nm);
1030 
1031       if (entry_bci == InvocationEntryBci) {
1032         if (TieredCompilation) {
1033           // If there is an old version we're done with it
1034           nmethod* old = method->code();
1035           if (TraceMethodReplacement && old != NULL) {
1036             ResourceMark rm;
1037             char *method_name = method->name_and_sig_as_C_string();
1038             tty->print_cr("Replacing method %s", method_name);
1039           }
1040           if (old != NULL) {
1041             old->make_not_entrant();
1042           }
1043         }
1044         if (TraceNMethodInstalls) {
1045           ResourceMark rm;
1046           char *method_name = method->name_and_sig_as_C_string();
1047           ttyLocker ttyl;
1048           tty->print_cr("Installing method (%d) %s ",
1049                         comp_level,
1050                         method_name);
1051         }
1052         // Allow the code to be executed
1053         method->set_code(method, nm);
1054       } else {
1055         if (TraceNMethodInstalls) {
1056           ResourceMark rm;
1057           char *method_name = method->name_and_sig_as_C_string();
1058           ttyLocker ttyl;
1059           tty->print_cr("Installing osr method (%d) %s @ %d",
1060                         comp_level,
1061                         method_name,
1062                         entry_bci);
1063         }
1064         method->method_holder()->add_osr_nmethod(nm);
1065 
1066       }
1067     }
1068   }
1069   // JVMTI -- compiled method notification (must be done outside lock)
1070   if (nm != NULL) {
1071     nm->post_compiled_method_load_event();
1072   }
1073 
1074 }
1075