src/hotspot/share/prims/jvmtiEnv.cpp
changeset 59056 15936b142f86
parent 59016 3b9eeae66fa0
child 59105 76ae9aa0e794
equal deleted inserted replaced
59055:57ad70bcf06c 59056:15936b142f86
  3150 jvmtiError
  3150 jvmtiError
  3151 JvmtiEnv::GetBytecodes(Method* method_oop, jint* bytecode_count_ptr, unsigned char** bytecodes_ptr) {
  3151 JvmtiEnv::GetBytecodes(Method* method_oop, jint* bytecode_count_ptr, unsigned char** bytecodes_ptr) {
  3152   NULL_CHECK(method_oop, JVMTI_ERROR_INVALID_METHODID);
  3152   NULL_CHECK(method_oop, JVMTI_ERROR_INVALID_METHODID);
  3153 
  3153 
  3154   HandleMark hm;
  3154   HandleMark hm;
  3155   methodHandle method(method_oop);
  3155   methodHandle method(Thread::current(), method_oop);
  3156   jint size = (jint)method->code_size();
  3156   jint size = (jint)method->code_size();
  3157   jvmtiError err = allocate(size, bytecodes_ptr);
  3157   jvmtiError err = allocate(size, bytecodes_ptr);
  3158   if (err != JVMTI_ERROR_NONE) {
  3158   if (err != JVMTI_ERROR_NONE) {
  3159     return err;
  3159     return err;
  3160   }
  3160   }