Mercurial > hg > truffle
comparison src/share/vm/oops/objArrayKlassKlass.cpp @ 1339:09ac706c2623
Merge
author | asaha |
---|---|
date | Wed, 24 Mar 2010 17:16:33 -0700 |
parents | 4e6abf09f540 |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
1338:f5dd08ad65df | 1339:09ac706c2623 |
---|---|
97 } // re-lock | 97 } // re-lock |
98 return ek(); | 98 return ek(); |
99 } | 99 } |
100 } else { | 100 } else { |
101 // The element type is already Object. Object[] has direct super of Object. | 101 // The element type is already Object. Object[] has direct super of Object. |
102 super_klass = KlassHandle(THREAD, SystemDictionary::object_klass()); | 102 super_klass = KlassHandle(THREAD, SystemDictionary::Object_klass()); |
103 } | 103 } |
104 } | 104 } |
105 | 105 |
106 // Create type name for klass (except for symbol arrays, since symbolKlass | 106 // Create type name for klass (except for symbol arrays, since symbolKlass |
107 // does not have a name). This will potentially allocate an object, cause | 107 // does not have a name). This will potentially allocate an object, cause |
276 st->print(" - instance klass: "); | 276 st->print(" - instance klass: "); |
277 oak->element_klass()->print_value_on(st); | 277 oak->element_klass()->print_value_on(st); |
278 st->cr(); | 278 st->cr(); |
279 } | 279 } |
280 | 280 |
281 #endif //PRODUCT | |
281 | 282 |
282 void objArrayKlassKlass::oop_print_value_on(oop obj, outputStream* st) { | 283 void objArrayKlassKlass::oop_print_value_on(oop obj, outputStream* st) { |
283 assert(obj->is_klass(), "must be klass"); | 284 assert(obj->is_klass(), "must be klass"); |
284 objArrayKlass* oak = (objArrayKlass*) klassOop(obj)->klass_part(); | 285 objArrayKlass* oak = (objArrayKlass*) klassOop(obj)->klass_part(); |
285 | 286 |
286 oak->element_klass()->print_value_on(st); | 287 oak->element_klass()->print_value_on(st); |
287 st->print("[]"); | 288 st->print("[]"); |
288 } | 289 } |
289 | |
290 #endif | |
291 | 290 |
292 const char* objArrayKlassKlass::internal_name() const { | 291 const char* objArrayKlassKlass::internal_name() const { |
293 return "{object array class}"; | 292 return "{object array class}"; |
294 } | 293 } |
295 | 294 |