Mercurial > hg > truffle
comparison src/share/vm/runtime/deoptimization.cpp @ 7193:ee32440febeb
8001538: hs_err file does not list anymore compiled methods in compilation events
Summary: Fixed message buffer size calculation.
Reviewed-by: kvn, twisti
author | vlivanov |
---|---|
date | Wed, 21 Nov 2012 05:57:12 -0800 |
parents | 18fb7da42534 |
children | d2f8c38e543d |
comparison
equal
deleted
inserted
replaced
7192:7cc69864a29b | 7193:ee32440febeb |
---|---|
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; |