mirror of
https://github.com/openjdk/jdk.git
synced 2026-06-06 10:42:45 +00:00
8372442: 2 Null pointer dereference defect groups in jvmtiExport.cpp
Reviewed-by: dholmes, sspitsyn
This commit is contained in:
parent
e70e691307
commit
1b1576d055
@ -2269,6 +2269,8 @@ void JvmtiExport::post_field_access_by_jni(JavaThread *thread, oop obj,
|
||||
RegisterMap::ProcessFrames::skip,
|
||||
RegisterMap::WalkContinuation::skip);
|
||||
javaVFrame *jvf = thread->last_java_vframe(®_map);
|
||||
assert(jvf != nullptr, "last frame shouldn't be null");
|
||||
|
||||
Method* method = jvf->method();
|
||||
address address = jvf->method()->code_base();
|
||||
|
||||
@ -2367,6 +2369,8 @@ void JvmtiExport::post_field_modification_by_jni(JavaThread *thread, oop obj,
|
||||
RegisterMap::ProcessFrames::skip,
|
||||
RegisterMap::WalkContinuation::skip);
|
||||
javaVFrame *jvf = thread->last_java_vframe(®_map);
|
||||
assert(jvf != nullptr, "last frame shouldn't be null");
|
||||
|
||||
Method* method = jvf->method();
|
||||
address address = jvf->method()->code_base();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user