hotspot/src/share/vm/services/attachListener.cpp
changeset 13952 e3cf184080bc
parent 13728 882756847a04
child 14120 7d298141c258
equal deleted inserted replaced
13918:b01a48301e67 13952:e3cf184080bc
    86   }
    86   }
    87 
    87 
    88   // The result should be a [B
    88   // The result should be a [B
    89   oop res = (oop)result.get_jobject();
    89   oop res = (oop)result.get_jobject();
    90   assert(res->is_typeArray(), "just checking");
    90   assert(res->is_typeArray(), "just checking");
    91   assert(typeArrayKlass::cast(res->klass())->element_type() == T_BYTE, "just checking");
    91   assert(TypeArrayKlass::cast(res->klass())->element_type() == T_BYTE, "just checking");
    92 
    92 
    93   // copy the bytes to the output stream
    93   // copy the bytes to the output stream
    94   typeArrayOop ba = typeArrayOop(res);
    94   typeArrayOop ba = typeArrayOop(res);
    95   jbyte* addr = typeArrayOop(res)->byte_at_addr(0);
    95   jbyte* addr = typeArrayOop(res)->byte_at_addr(0);
    96   out->print_raw((const char*)addr, ba->length());
    96   out->print_raw((const char*)addr, ba->length());