--- old/src/hotspot/share/oops/oop.cpp 2018-04-20 00:47:05.000000000 +0100 +++ new/src/hotspot/share/oops/oop.cpp 2018-04-20 00:47:05.000000000 +0100 @@ -41,6 +41,10 @@ void oopDesc::print_on(outputStream* st) const { if (this == NULL) { st->print_cr("NULL"); + } else if (*((juint*)this) == badHeapWordVal) { + st->print("BAD WORD"); + } else if (*((juint*)this) == badMetaWordVal) { + st->print("BAD META WORD"); } else { klass()->oop_print_on(oop(this), st); }