Skip to content
Permalink
Browse files
8263430: Uninitialized Method* variables after JDK-8233913
Reviewed-by: coleenp, hseigel
  • Loading branch information
shipilev committed Mar 12, 2021
1 parent 9f6b1d7 commit e25ad7309a5d8bf579b0f27f2f2a57228b9cec87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
@@ -1150,7 +1150,7 @@ Method* LinkResolver::linktime_resolve_special_method(const LinkInfo& link_info,
// and the selected method is recalculated relative to the direct superclass
// superinterface.method, which explicitly does not check shadowing
Klass* resolved_klass = link_info.resolved_klass();
Method* resolved_method;
Method* resolved_method = NULL;

if (!resolved_klass->is_interface()) {
resolved_method = resolve_method(link_info, Bytecodes::_invokespecial, CHECK_NULL);
@@ -370,7 +370,7 @@ C2V_VMENTRY_NULL(jobject, asResolvedJavaMethod, (JNIEnv* env, jobject, jobject e
}

C2V_VMENTRY_NULL(jobject, getResolvedJavaMethod, (JNIEnv* env, jobject, jobject base, jlong offset))
Method* method;
Method* method = NULL;
JVMCIObject base_object = JVMCIENV->wrap(base);
if (base_object.is_null()) {
method = *((Method**)(offset));
@@ -92,7 +92,7 @@ void HotSpotJVMCI::compute_offset(int &dest_offset, Klass* klass, const char* na

#ifndef PRODUCT
static void check_resolve_method(const char* call_type, Klass* resolved_klass, Symbol* method_name, Symbol* method_signature, TRAPS) {
Method* method;
Method* method = NULL;
LinkInfo link_info(resolved_klass, method_name, method_signature, NULL, LinkInfo::AccessCheck::skip, LinkInfo::LoaderConstraintCheck::skip);
if (strcmp(call_type, "call_static") == 0) {
method = LinkResolver::resolve_static_call_or_null(link_info);

0 comments on commit e25ad73

Please sign in to comment.