hotspot/src/share/vm/services/diagnosticCommand.cpp
changeset 13952 e3cf184080bc
parent 13728 882756847a04
child 13977 92de166c91b3
equal deleted inserted replaced
13918:b01a48301e67 13952:e3cf184080bc
   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());