src/share/vm/runtime/deoptimization.cpp

changeset 4325
d2f8c38e543d
parent 4298
d0aa87f04bd5
parent 4312
ee32440febeb
child 4539
6a51fc70a15e
equal deleted inserted replaced
4310:816b7e5bf2ed 4325:d2f8c38e543d
1240 // Make sure the calling nmethod is not getting deoptimized and removed 1240 // Make sure the calling nmethod is not getting deoptimized and removed
1241 // before we are done with it. 1241 // before we are done with it.
1242 nmethodLocker nl(fr.pc()); 1242 nmethodLocker nl(fr.pc());
1243 1243
1244 // Log a message 1244 // Log a message
1245 Events::log_deopt_message(thread, "Uncommon trap %d fr.pc " INTPTR_FORMAT, 1245 Events::log(thread, "Uncommon trap: trap_request=" PTR32_FORMAT " fr.pc=" INTPTR_FORMAT,
1246 trap_request, fr.pc()); 1246 trap_request, fr.pc());
1247 1247
1248 { 1248 {
1249 ResourceMark rm; 1249 ResourceMark rm;
1250 1250
1251 // Revoke biases of any monitors in the frame to ensure we can migrate them 1251 // Revoke biases of any monitors in the frame to ensure we can migrate them
1271 // Ensure that we can record deopt. history: 1271 // Ensure that we can record deopt. history:
1272 bool create_if_missing = ProfileTraps; 1272 bool create_if_missing = ProfileTraps;
1273 1273
1274 MethodData* trap_mdo = 1274 MethodData* trap_mdo =
1275 get_method_data(thread, trap_method, create_if_missing); 1275 get_method_data(thread, trap_method, create_if_missing);
1276
1277 // Log a message
1278 Events::log_deopt_message(thread, "Uncommon trap: reason=%s action=%s pc=" INTPTR_FORMAT " method=%s @ %d",
1279 trap_reason_name(reason), trap_action_name(action), fr.pc(),
1280 trap_method->name_and_sig_as_C_string(), trap_bci);
1276 1281
1277 // Print a bunch of diagnostics, if requested. 1282 // Print a bunch of diagnostics, if requested.
1278 if (TraceDeoptimization || LogCompilation) { 1283 if (TraceDeoptimization || LogCompilation) {
1279 ResourceMark rm; 1284 ResourceMark rm;
1280 ttyLocker ttyl; 1285 ttyLocker ttyl;

mercurial