Mercurial > hg > truffle
comparison src/share/vm/memory/dump.cpp @ 1144:9b9c1ee9b3f6
Merge
author | iveresov |
---|---|
date | Wed, 06 Jan 2010 22:21:39 -0800 |
parents | 4ce7240d622c |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
1129:a5a6adfca6ec | 1144:9b9c1ee9b3f6 |
---|---|
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 } |