Mercurial > hg > truffle
comparison src/share/vm/services/diagnosticCommand.cpp @ 6831:d8ce2825b193
8000213: NPG: Should have renamed arrayKlass and typeArrayKlass
Summary: Capitalize these metadata types (and objArrayKlass)
Reviewed-by: stefank, twisti, kvn
author | coleenp |
---|---|
date | Sat, 29 Sep 2012 06:40:00 -0400 |
parents | da91efe96a93 |
children | 9855b7e559ae |
comparison
equal
deleted
inserted
replaced
6811:1b582b1bf7cb | 6831:d8ce2825b193 |
---|---|
202 } | 202 } |
203 | 203 |
204 // The result should be a [B | 204 // The result should be a [B |
205 oop res = (oop)result.get_jobject(); | 205 oop res = (oop)result.get_jobject(); |
206 assert(res->is_typeArray(), "just checking"); | 206 assert(res->is_typeArray(), "just checking"); |
207 assert(typeArrayKlass::cast(res->klass())->element_type() == T_BYTE, "just checking"); | 207 assert(TypeArrayKlass::cast(res->klass())->element_type() == T_BYTE, "just checking"); |
208 | 208 |
209 // copy the bytes to the output stream | 209 // copy the bytes to the output stream |
210 typeArrayOop ba = typeArrayOop(res); | 210 typeArrayOop ba = typeArrayOop(res); |
211 jbyte* addr = typeArrayOop(res)->byte_at_addr(0); | 211 jbyte* addr = typeArrayOop(res)->byte_at_addr(0); |
212 output()->print_raw((const char*)addr, ba->length()); | 212 output()->print_raw((const char*)addr, ba->length()); |