hotspot/src/share/vm/memory/dump.cpp
changeset 4571 80b553bddc26
parent 2538 1ecc4413e7e7
child 5547 f4b087cbb361
equal deleted inserted replaced
4569:f372ea9e5ed4 4571:80b553bddc26
    61   }
    61   }
    62 
    62 
    63   void do_oop(oop* p) {
    63   void do_oop(oop* p) {
    64     if (p != NULL) {
    64     if (p != NULL) {
    65       oop obj = *p;
    65       oop obj = *p;
    66       if (obj->klass() == SystemDictionary::string_klass()) {
    66       if (obj->klass() == SystemDictionary::String_klass()) {
    67 
    67 
    68         int hash;
    68         int hash;
    69         typeArrayOop value = java_lang_String::value(obj);
    69         typeArrayOop value = java_lang_String::value(obj);
    70         int length = java_lang_String::length(obj);
    70         int length = java_lang_String::length(obj);
    71         if (length == 0) {
    71         if (length == 0) {
   623     // future) contain a reference to a young gen object, add it to the
   623     // future) contain a reference to a young gen object, add it to the
   624     // list.
   624     // list.
   625 
   625 
   626     if (obj->is_klass() || obj->is_instance()) {
   626     if (obj->is_klass() || obj->is_instance()) {
   627       if (obj->is_klass() ||
   627       if (obj->is_klass() ||
   628           obj->is_a(SystemDictionary::class_klass()) ||
   628           obj->is_a(SystemDictionary::Class_klass()) ||
   629           obj->is_a(SystemDictionary::throwable_klass())) {
   629           obj->is_a(SystemDictionary::Throwable_klass())) {
   630         // Do nothing
   630         // Do nothing
   631       }
   631       }
   632       else if (obj->is_a(SystemDictionary::string_klass())) {
   632       else if (obj->is_a(SystemDictionary::String_klass())) {
   633         // immutable objects.
   633         // immutable objects.
   634       } else {
   634       } else {
   635         // someone added an object we hadn't accounted for.
   635         // someone added an object we hadn't accounted for.
   636         ShouldNotReachHere();
   636         ShouldNotReachHere();
   637       }
   637       }