< prev index next >

src/hotspot/share/oops/symbol.cpp

Print this page

        

@@ -292,32 +292,24 @@
     trace_stream.cr();
   }
 }
 
 void Symbol::print_on(outputStream* st) const {
-  if (this == NULL) {
-    st->print_cr("NULL");
-  } else {
     st->print("Symbol: '");
     print_symbol_on(st);
     st->print("'");
     st->print(" count %d", refcount());
-  }
 }
 
 // The print_value functions are present in all builds, to support the
 // disassembler and error reporting.
 void Symbol::print_value_on(outputStream* st) const {
-  if (this == NULL) {
-    st->print("NULL");
-  } else {
     st->print("'");
     for (int i = 0; i < utf8_length(); i++) {
       st->print("%c", char_at(i));
     }
     st->print("'");
-  }
 }
 
 bool Symbol::is_valid(Symbol* s) {
   if (!is_aligned(s, sizeof(MetaWord))) return false;
   if ((size_t)s < os::min_page_size()) return false;
< prev index next >