comparison src/share/vm/ci/ciEnv.cpp @ 10195:e12c9b3740db

8012260: ciReplay: Include PID into the name of replay data file Reviewed-by: kvn, twisti
author vlivanov
date Thu, 25 Apr 2013 11:02:32 -0700
parents 2dec1d9bfbe1
children 7b23cb975cf2
comparison
equal deleted inserted replaced
10141:47766e2d2527 10195:e12c9b3740db
1147 void ciEnv::record_out_of_memory_failure() { 1147 void ciEnv::record_out_of_memory_failure() {
1148 // If memory is low, we stop compiling methods. 1148 // If memory is low, we stop compiling methods.
1149 record_method_not_compilable("out of memory"); 1149 record_method_not_compilable("out of memory");
1150 } 1150 }
1151 1151
1152 fileStream* ciEnv::_replay_data_stream = NULL; 1152 void ciEnv::dump_replay_data(outputStream* out) {
1153
1154 void ciEnv::dump_replay_data() {
1155 VM_ENTRY_MARK; 1153 VM_ENTRY_MARK;
1156 MutexLocker ml(Compile_lock); 1154 MutexLocker ml(Compile_lock);
1157 if (_replay_data_stream == NULL) {
1158 _replay_data_stream = new (ResourceObj::C_HEAP, mtCompiler) fileStream(ReplayDataFile);
1159 if (_replay_data_stream == NULL) {
1160 fatal(err_msg("Can't open %s for replay data", ReplayDataFile));
1161 }
1162 }
1163 dump_replay_data(_replay_data_stream);
1164 }
1165
1166
1167 void ciEnv::dump_replay_data(outputStream* out) {
1168 ASSERT_IN_VM;
1169 ResourceMark rm; 1155 ResourceMark rm;
1170 #if INCLUDE_JVMTI 1156 #if INCLUDE_JVMTI
1171 out->print_cr("JvmtiExport can_access_local_variables %d", _jvmti_can_access_local_variables); 1157 out->print_cr("JvmtiExport can_access_local_variables %d", _jvmti_can_access_local_variables);
1172 out->print_cr("JvmtiExport can_hotswap_or_post_breakpoint %d", _jvmti_can_hotswap_or_post_breakpoint); 1158 out->print_cr("JvmtiExport can_hotswap_or_post_breakpoint %d", _jvmti_can_hotswap_or_post_breakpoint);
1173 out->print_cr("JvmtiExport can_post_on_exceptions %d", _jvmti_can_post_on_exceptions); 1159 out->print_cr("JvmtiExport can_post_on_exceptions %d", _jvmti_can_post_on_exceptions);