diff -r 32baebe49efe -r 70aab0c2ea8b hotspot/src/share/vm/oops/klass.cpp --- a/hotspot/src/share/vm/oops/klass.cpp Mon Apr 24 21:34:24 2017 +0200 +++ b/hotspot/src/share/vm/oops/klass.cpp Thu Apr 13 01:56:01 2017 -0700 @@ -696,8 +696,8 @@ guarantee(obj->klass()->is_klass(), "klass field is not a klass"); } -klassVtable* Klass::vtable() const { - return new klassVtable(const_cast(this), start_of_vtable(), vtable_length() / vtableEntry::size()); +klassVtable Klass::vtable() const { + return klassVtable(const_cast(this), start_of_vtable(), vtable_length() / vtableEntry::size()); } vtableEntry* Klass::start_of_vtable() const {