comparison src/share/vm/oops/instanceKlass.cpp @ 6972:bd7a7ce2e264

6830717: replay of compilations would help with debugging Summary: When java process crashed in compiler thread, repeat the compilation process will help finding root cause. This is done with using SA dump application class data and replay data from core dump, then use debug version of jvm to recompile the problematic java method. Reviewed-by: kvn, twisti, sspitsyn Contributed-by: yumin.qi@oracle.com
author minqi
date Mon, 12 Nov 2012 14:03:53 -0800
parents 4735d2c84362
children 80e866b1d053
comparison
equal deleted inserted replaced
6965:3be318ecfae5 6972:bd7a7ce2e264
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();