hotspot/src/share/vm/code/nmethod.cpp
changeset 35542 9dccb7f9f656
parent 35135 dd2ce9021031
child 35546 b75e269c0922
equal deleted inserted replaced
35541:cba047a086d5 35542:9dccb7f9f656
  2637     ResetNoHandleMark rnm; // Might be called from LEAF/QUICK ENTRY
  2637     ResetNoHandleMark rnm; // Might be called from LEAF/QUICK ENTRY
  2638     HandleMark hm(thread);
  2638     HandleMark hm(thread);
  2639     ResourceMark rm(thread);
  2639     ResourceMark rm(thread);
  2640     CodeBlob* cb = CodeCache::find_blob(pc);
  2640     CodeBlob* cb = CodeCache::find_blob(pc);
  2641     assert(cb != NULL && cb == this, "");
  2641     assert(cb != NULL && cb == this, "");
       
  2642     ttyLocker ttyl;
  2642     tty->print_cr("implicit exception happened at " INTPTR_FORMAT, p2i(pc));
  2643     tty->print_cr("implicit exception happened at " INTPTR_FORMAT, p2i(pc));
  2643     print();
  2644     print();
  2644     method()->print_codes();
  2645     method()->print_codes();
  2645     print_code();
  2646     print_code();
  2646     print_pcs();
  2647     print_pcs();
  2957   if (nul_chk_table_size() > 0) tty->print_cr(" nul chk table  [" INTPTR_FORMAT "," INTPTR_FORMAT "] = %d",
  2958   if (nul_chk_table_size() > 0) tty->print_cr(" nul chk table  [" INTPTR_FORMAT "," INTPTR_FORMAT "] = %d",
  2958                                               p2i(nul_chk_table_begin()),
  2959                                               p2i(nul_chk_table_begin()),
  2959                                               p2i(nul_chk_table_end()),
  2960                                               p2i(nul_chk_table_end()),
  2960                                               nul_chk_table_size());
  2961                                               nul_chk_table_size());
  2961 }
  2962 }
  2962 
       
  2963 void nmethod::print_code() {
       
  2964   HandleMark hm;
       
  2965   ResourceMark m;
       
  2966   Disassembler::decode(this);
       
  2967 }
       
  2968 
       
  2969 
  2963 
  2970 #ifndef PRODUCT
  2964 #ifndef PRODUCT
  2971 
  2965 
  2972 void nmethod::print_scopes() {
  2966 void nmethod::print_scopes() {
  2973   // Find the first pc desc for all scopes in the code and print it.
  2967   // Find the first pc desc for all scopes in the code and print it.