src/hotspot/share/runtime/compilationPolicy.cpp
changeset 48418 2207e2917a68
parent 47216 71c04702a3d5
child 48873 9536c39ac6de
equal deleted inserted replaced
48417:044979e94c4e 48418:2207e2917a68
   468     bc->print();
   468     bc->print();
   469     if (ProfileInterpreter) {
   469     if (ProfileInterpreter) {
   470       if (bci != InvocationEntryBci) {
   470       if (bci != InvocationEntryBci) {
   471         MethodData* mdo = m->method_data();
   471         MethodData* mdo = m->method_data();
   472         if (mdo != NULL) {
   472         if (mdo != NULL) {
   473           int count = mdo->bci_to_data(branch_bci)->as_JumpData()->taken();
   473           ProfileData *pd = mdo->bci_to_data(branch_bci);
   474           tty->print_cr("back branch count = %d", count);
   474           if (pd == NULL) {
       
   475             tty->print_cr("back branch count = N/A (missing ProfileData)");
       
   476           } else {
       
   477             tty->print_cr("back branch count = %d", pd->as_JumpData()->taken());
       
   478           }
   475         }
   479         }
   476       }
   480       }
   477     }
   481     }
   478   }
   482   }
   479 }
   483 }