< prev index next >

src/share/vm/oops/oop.cpp

Print this page




  30 #include "runtime/handles.inline.hpp"
  31 #include "runtime/thread.inline.hpp"
  32 #include "utilities/copy.hpp"
  33 
  34 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
  35 
  36 bool always_do_update_barrier = false;
  37 
  38 BarrierSet* oopDesc::_bs = NULL;
  39 
  40 void oopDesc::print_on(outputStream* st) const {
  41   if (this == NULL) {
  42     st->print_cr("NULL");
  43   } else {
  44     klass()->oop_print_on(oop(this), st);
  45   }
  46 }
  47 
  48 void oopDesc::print_address_on(outputStream* st) const {
  49   if (PrintOopAddress) {
  50     st->print("{"INTPTR_FORMAT"}", this);
  51   }
  52 }
  53 
  54 void oopDesc::print()         { print_on(tty);         }
  55 
  56 void oopDesc::print_address() { print_address_on(tty); }
  57 
  58 char* oopDesc::print_string() {
  59   stringStream st;
  60   print_on(&st);
  61   return st.as_string();
  62 }
  63 
  64 void oopDesc::print_value() {
  65   print_value_on(tty);
  66 }
  67 
  68 char* oopDesc::print_value_string() {
  69   char buf[100];
  70   stringStream st(buf, sizeof(buf));




  30 #include "runtime/handles.inline.hpp"
  31 #include "runtime/thread.inline.hpp"
  32 #include "utilities/copy.hpp"
  33 
  34 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
  35 
  36 bool always_do_update_barrier = false;
  37 
  38 BarrierSet* oopDesc::_bs = NULL;
  39 
  40 void oopDesc::print_on(outputStream* st) const {
  41   if (this == NULL) {
  42     st->print_cr("NULL");
  43   } else {
  44     klass()->oop_print_on(oop(this), st);
  45   }
  46 }
  47 
  48 void oopDesc::print_address_on(outputStream* st) const {
  49   if (PrintOopAddress) {
  50     st->print("{" INTPTR_FORMAT "}", this);
  51   }
  52 }
  53 
  54 void oopDesc::print()         { print_on(tty);         }
  55 
  56 void oopDesc::print_address() { print_address_on(tty); }
  57 
  58 char* oopDesc::print_string() {
  59   stringStream st;
  60   print_on(&st);
  61   return st.as_string();
  62 }
  63 
  64 void oopDesc::print_value() {
  65   print_value_on(tty);
  66 }
  67 
  68 char* oopDesc::print_value_string() {
  69   char buf[100];
  70   stringStream st(buf, sizeof(buf));


< prev index next >