hotspot/src/share/vm/oops/klass.cpp
changeset 6176 4d9030fe341f
parent 5547 f4b087cbb361
child 7397 5b173b4ca846
equal deleted inserted replaced
6175:86dbf3cacacc 6176:4d9030fe341f
   518 // Unless overridden, jvmti_class_status has no flags set.
   518 // Unless overridden, jvmti_class_status has no flags set.
   519 jint Klass::jvmti_class_status() const {
   519 jint Klass::jvmti_class_status() const {
   520   return 0;
   520   return 0;
   521 }
   521 }
   522 
   522 
   523 #ifndef PRODUCT
       
   524 
       
   525 // Printing
   523 // Printing
   526 
   524 
   527 void Klass::oop_print_on(oop obj, outputStream* st) {
   525 void Klass::oop_print_on(oop obj, outputStream* st) {
   528   ResourceMark rm;
   526   ResourceMark rm;
   529   // print title
   527   // print title
   538   // print class
   536   // print class
   539   st->print(" - klass: ");
   537   st->print(" - klass: ");
   540   obj->klass()->print_value_on(st);
   538   obj->klass()->print_value_on(st);
   541   st->cr();
   539   st->cr();
   542 }
   540 }
   543 
       
   544 #endif //PRODUCT
       
   545 
   541 
   546 void Klass::oop_print_value_on(oop obj, outputStream* st) {
   542 void Klass::oop_print_value_on(oop obj, outputStream* st) {
   547   // print title
   543   // print title
   548   ResourceMark rm;              // Cannot print in debug mode without this
   544   ResourceMark rm;              // Cannot print in debug mode without this
   549   st->print("%s", internal_name());
   545   st->print("%s", internal_name());