8372442: 2 Null pointer dereference defect groups in jvmtiExport.cpp

Reviewed-by: dholmes, sspitsyn
This commit is contained in:
Leonid Mesnik 2026-06-03 18:09:14 +00:00
parent e70e691307
commit 1b1576d055

View File

@ -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(&reg_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(&reg_map);
assert(jvf != nullptr, "last frame shouldn't be null");
Method* method = jvf->method();
address address = jvf->method()->code_base();