6975855: don't emit deopt MH handler in C1 if not required

This CR implements the same for C1 as 6926782 for C2.

Reviewed-by: never
This commit is contained in:
Christian Thalinger 2010-08-11 01:17:27 -07:00
parent dc37d152e7
commit c9ac8cc788
4 changed files with 24 additions and 6 deletions

View file

@ -2472,8 +2472,12 @@ void nmethod::print_nmethod_labels(outputStream* stream, address block_begin) {
if (block_begin == exception_begin()) stream->print_cr("[Exception Handler]");
if (block_begin == stub_begin()) stream->print_cr("[Stub Code]");
if (block_begin == deopt_handler_begin()) stream->print_cr("[Deopt Handler Code]");
if (block_begin == deopt_mh_handler_begin()) stream->print_cr("[Deopt MH Handler Code]");
if (has_method_handle_invokes())
if (block_begin == deopt_mh_handler_begin()) stream->print_cr("[Deopt MH Handler Code]");
if (block_begin == consts_begin()) stream->print_cr("[Constants]");
if (block_begin == entry_point()) {
methodHandle m = method();
if (m.not_null()) {