< prev index next >

src/hotspot/share/oops/oop.cpp

Print this page




  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/altHashing.hpp"
  27 #include "classfile/javaClasses.inline.hpp"
  28 #include "memory/resourceArea.hpp"
  29 #include "oops/access.inline.hpp"
  30 #include "oops/oop.inline.hpp"
  31 #include "oops/verifyOopClosure.hpp"
  32 #include "runtime/handles.inline.hpp"
  33 #include "runtime/thread.inline.hpp"
  34 #include "utilities/copy.hpp"
  35 #if INCLUDE_ALL_GCS
  36 #include "gc/g1/g1Allocator.inline.hpp"
  37 #endif
  38 
  39 bool always_do_update_barrier = false;
  40 
  41 void oopDesc::print_on(outputStream* st) const {
  42   if (this == NULL) {
  43     st->print_cr("NULL");
  44   } else {
  45     klass()->oop_print_on(oop(this), st);
  46   }
  47 }
  48 
  49 void oopDesc::print_address_on(outputStream* st) const {
  50   st->print("{" INTPTR_FORMAT "}", p2i(this));
  51 
  52 }
  53 
  54 void oopDesc::print()         { print_on(tty);         }
  55 




  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "classfile/altHashing.hpp"
  27 #include "classfile/javaClasses.inline.hpp"
  28 #include "memory/resourceArea.hpp"
  29 #include "oops/access.inline.hpp"
  30 #include "oops/oop.inline.hpp"
  31 #include "oops/verifyOopClosure.hpp"
  32 #include "runtime/handles.inline.hpp"
  33 #include "runtime/thread.inline.hpp"
  34 #include "utilities/copy.hpp"
  35 #if INCLUDE_G1GC
  36 #include "gc/g1/g1Allocator.inline.hpp"
  37 #endif
  38 
  39 bool always_do_update_barrier = false;
  40 
  41 void oopDesc::print_on(outputStream* st) const {
  42   if (this == NULL) {
  43     st->print_cr("NULL");
  44   } else {
  45     klass()->oop_print_on(oop(this), st);
  46   }
  47 }
  48 
  49 void oopDesc::print_address_on(outputStream* st) const {
  50   st->print("{" INTPTR_FORMAT "}", p2i(this));
  51 
  52 }
  53 
  54 void oopDesc::print()         { print_on(tty);         }
  55 


< prev index next >