src/hotspot/share/opto/bytecodeInfo.cpp
changeset 51078 fc6cfe40e32a
parent 50113 caf115bb98ad
child 51333 f6641fcf7b7e
equal deleted inserted replaced
51077:9baa91bc7567 51078:fc6cfe40e32a
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   518   }
   518   }
   519   CompileTask::print_inlining_ul(callee_method, inline_level(),
   519   CompileTask::print_inlining_ul(callee_method, inline_level(),
   520                                                caller_bci, inline_msg);
   520                                                caller_bci, inline_msg);
   521   if (C->print_inlining()) {
   521   if (C->print_inlining()) {
   522     C->print_inlining(callee_method, inline_level(), caller_bci, inline_msg);
   522     C->print_inlining(callee_method, inline_level(), caller_bci, inline_msg);
   523     if (callee_method == NULL) tty->print(" callee not monotonic or profiled");
   523     guarantee(callee_method != NULL, "would crash in post_inlining_event");
   524     if (Verbose && callee_method) {
   524     if (Verbose) {
   525       const InlineTree *top = this;
   525       const InlineTree *top = this;
   526       while( top->caller_tree() != NULL ) { top = top->caller_tree(); }
   526       while (top->caller_tree() != NULL) { top = top->caller_tree(); }
   527       //tty->print("  bcs: %d+%d  invoked: %d", top->count_inline_bcs(), callee_method->code_size(), callee_method->interpreter_invocation_count());
   527       //tty->print("  bcs: %d+%d  invoked: %d", top->count_inline_bcs(), callee_method->code_size(), callee_method->interpreter_invocation_count());
   528     }
   528     }
   529   }
   529   }
   530   post_inlining_event(C->compile_id(), inline_msg, success, caller_bci, caller_method, callee_method);
   530   post_inlining_event(C->compile_id(), inline_msg, success, caller_bci, caller_method, callee_method);
   531 }
   531 }