hotspot/src/share/vm/runtime/deoptimization.cpp
changeset 14620 45167d2bc15a
parent 14391 df0a1573d5bd
child 14633 58caa6fc3b7c
equal deleted inserted replaced
14619:100554ee24d1 14620:45167d2bc15a
  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;