mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
Merge
This commit is contained in:
commit
d94fef24b5
100 changed files with 3390 additions and 650 deletions
|
@ -1,4 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
|
@ -158,6 +159,22 @@ CallInfo::CallInfo(Method* resolved_method, Klass* resolved_klass) {
|
|||
index = vt->index_of_miranda(resolved_method->name(),
|
||||
resolved_method->signature());
|
||||
kind = CallInfo::vtable_call;
|
||||
} else if (resolved_method->has_vtable_index()) {
|
||||
// Can occur if an interface redeclares a method of Object.
|
||||
|
||||
#ifdef ASSERT
|
||||
// Ensure that this is really the case.
|
||||
KlassHandle object_klass = SystemDictionary::Object_klass();
|
||||
Method * object_resolved_method = object_klass()->vtable()->method_at(index);
|
||||
assert(object_resolved_method->name() == resolved_method->name(),
|
||||
err_msg("Object and interface method names should match at vtable index %d, %s != %s",
|
||||
index, object_resolved_method->name()->as_C_string(), resolved_method->name()->as_C_string()));
|
||||
assert(object_resolved_method->signature() == resolved_method->signature(),
|
||||
err_msg("Object and interface method signatures should match at vtable index %d, %s != %s",
|
||||
index, object_resolved_method->signature()->as_C_string(), resolved_method->signature()->as_C_string()));
|
||||
#endif // ASSERT
|
||||
|
||||
kind = CallInfo::vtable_call;
|
||||
} else {
|
||||
// A regular interface call.
|
||||
kind = CallInfo::itable_call;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue