hotspot/src/share/vm/oops/instanceKlass.cpp
changeset 14477 95e66ea71f71
parent 14385 959bbcc16725
child 14490 5bb45ed999ee
equal deleted inserted replaced
14470:f6651390f4e7 14477:95e66ea71f71
  1050   }
  1050   }
  1051   return NULL;
  1051   return NULL;
  1052 }
  1052 }
  1053 
  1053 
  1054 void InstanceKlass::call_class_initializer_impl(instanceKlassHandle this_oop, TRAPS) {
  1054 void InstanceKlass::call_class_initializer_impl(instanceKlassHandle this_oop, TRAPS) {
       
  1055   if (ReplayCompiles &&
       
  1056       (ReplaySuppressInitializers == 1 ||
       
  1057        ReplaySuppressInitializers >= 2 && this_oop->class_loader() != NULL)) {
       
  1058     // Hide the existence of the initializer for the purpose of replaying the compile
       
  1059     return;
       
  1060   }
       
  1061 
  1055   methodHandle h_method(THREAD, this_oop->class_initializer());
  1062   methodHandle h_method(THREAD, this_oop->class_initializer());
  1056   assert(!this_oop->is_initialized(), "we cannot initialize twice");
  1063   assert(!this_oop->is_initialized(), "we cannot initialize twice");
  1057   if (TraceClassInitialization) {
  1064   if (TraceClassInitialization) {
  1058     tty->print("%d Initializing ", call_class_initializer_impl_counter++);
  1065     tty->print("%d Initializing ", call_class_initializer_impl_counter++);
  1059     this_oop->name()->print_value();
  1066     this_oop->name()->print_value();