mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8148481: Devirtualize Klass::vtable
Move remainder of vtable related methods to Klass Reviewed-by: cjplummer, coleenp
This commit is contained in:
parent
211dc93a85
commit
3cda485fe5
12 changed files with 44 additions and 73 deletions
|
@ -364,10 +364,6 @@ bool InstanceKlass::should_be_initialized() const {
|
|||
return !is_initialized();
|
||||
}
|
||||
|
||||
klassVtable* InstanceKlass::vtable() const {
|
||||
return new klassVtable(this, start_of_vtable(), vtable_length() / vtableEntry::size());
|
||||
}
|
||||
|
||||
klassItable* InstanceKlass::itable() const {
|
||||
return new klassItable(instanceKlassHandle(this));
|
||||
}
|
||||
|
@ -2667,6 +2663,10 @@ static void print_vtable(intptr_t* start, int len, outputStream* st) {
|
|||
}
|
||||
}
|
||||
|
||||
static void print_vtable(vtableEntry* start, int len, outputStream* st) {
|
||||
return print_vtable(reinterpret_cast<intptr_t*>(start), len, st);
|
||||
}
|
||||
|
||||
void InstanceKlass::print_on(outputStream* st) const {
|
||||
assert(is_klass(), "must be klass");
|
||||
Klass::print_on(st);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue