comparison src/share/vm/prims/jni.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 18fb7da42534
children 80e866b1d053
comparison
equal deleted inserted replaced
6965:3be318ecfae5 6972:bd7a7ce2e264
22 * questions. 22 * questions.
23 * 23 *
24 */ 24 */
25 25
26 #include "precompiled.hpp" 26 #include "precompiled.hpp"
27 #include "ci/ciReplay.hpp"
27 #include "classfile/altHashing.hpp" 28 #include "classfile/altHashing.hpp"
28 #include "classfile/classLoader.hpp" 29 #include "classfile/classLoader.hpp"
29 #include "classfile/javaClasses.hpp" 30 #include "classfile/javaClasses.hpp"
30 #include "classfile/symbolTable.hpp" 31 #include "classfile/symbolTable.hpp"
31 #include "classfile/systemDictionary.hpp" 32 #include "classfile/systemDictionary.hpp"
5149 EVENT_COMMIT(event, 5150 EVENT_COMMIT(event,
5150 EVENT_SET(event, javalangthread, java_lang_Thread::thread_id(thread->threadObj()))); 5151 EVENT_SET(event, javalangthread, java_lang_Thread::thread_id(thread->threadObj())));
5151 5152
5152 // Check if we should compile all classes on bootclasspath 5153 // Check if we should compile all classes on bootclasspath
5153 NOT_PRODUCT(if (CompileTheWorld) ClassLoader::compile_the_world();) 5154 NOT_PRODUCT(if (CompileTheWorld) ClassLoader::compile_the_world();)
5155 NOT_PRODUCT(if (ReplayCompiles) ciReplay::replay(thread);)
5154 // Since this is not a JVM_ENTRY we have to set the thread state manually before leaving. 5156 // Since this is not a JVM_ENTRY we have to set the thread state manually before leaving.
5155 ThreadStateTransition::transition_and_fence(thread, _thread_in_vm, _thread_in_native); 5157 ThreadStateTransition::transition_and_fence(thread, _thread_in_vm, _thread_in_native);
5156 } else { 5158 } else {
5157 if (can_try_again) { 5159 if (can_try_again) {
5158 // reset safe_to_recreate_vm to 1 so that retrial would be possible 5160 // reset safe_to_recreate_vm to 1 so that retrial would be possible