equal
deleted
inserted
replaced
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 } |