< prev index next >

src/hotspot/share/opto/runtime.cpp

Print this page
rev 63810 : Merge


1688   trace_exception_counter++;
1689   stringStream tempst;
1690 
1691   tempst.print("%d [Exception (%s): ", trace_exception_counter, msg);
1692   exception_oop->print_value_on(&tempst);
1693   tempst.print(" in ");
1694   CodeBlob* blob = CodeCache::find_blob(exception_pc);
1695   if (blob->is_compiled()) {
1696     CompiledMethod* cm = blob->as_compiled_method_or_null();
1697     cm->method()->print_value_on(&tempst);
1698   } else if (blob->is_runtime_stub()) {
1699     tempst.print("<runtime-stub>");
1700   } else {
1701     tempst.print("<unknown>");
1702   }
1703   tempst.print(" at " INTPTR_FORMAT,  p2i(exception_pc));
1704   tempst.print("]");
1705 
1706   st->print_raw_cr(tempst.as_string());
1707 }















1688   trace_exception_counter++;
1689   stringStream tempst;
1690 
1691   tempst.print("%d [Exception (%s): ", trace_exception_counter, msg);
1692   exception_oop->print_value_on(&tempst);
1693   tempst.print(" in ");
1694   CodeBlob* blob = CodeCache::find_blob(exception_pc);
1695   if (blob->is_compiled()) {
1696     CompiledMethod* cm = blob->as_compiled_method_or_null();
1697     cm->method()->print_value_on(&tempst);
1698   } else if (blob->is_runtime_stub()) {
1699     tempst.print("<runtime-stub>");
1700   } else {
1701     tempst.print("<unknown>");
1702   }
1703   tempst.print(" at " INTPTR_FORMAT,  p2i(exception_pc));
1704   tempst.print("]");
1705 
1706   st->print_raw_cr(tempst.as_string());
1707 }
1708 
1709 const TypeFunc* OptoRuntime::get_referenced_objects_Type() {
1710   const Type** fields = TypeTuple::fields(2);
1711   fields[TypeFunc::Parms+0] = TypeInstPtr::NOTNULL; // oop; object
1712   fields[TypeFunc::Parms+1] = TypeAryPtr::NOTNULL;  // oop; reference buffer
1713   const TypeTuple* domain = TypeTuple::make(TypeFunc::Parms+2,fields);
1714 
1715   fields = TypeTuple::fields(1);
1716   fields[TypeFunc::Parms+0] = TypeInt::INT; // count
1717   const TypeTuple* range = TypeTuple::make(TypeFunc::Parms+1,fields);
1718 
1719   return TypeFunc::make(domain,range);
1720 }
< prev index next >