mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8178712: ResourceMark may be missing inside initialize_[vi]table
Clean up use of ResourceMark within initialize_[vi]table. Reviewed-by: ccheung, iklam, jiangli
This commit is contained in:
parent
3aa10b4fab
commit
e8fcd927c3
5 changed files with 19 additions and 23 deletions
|
@ -100,7 +100,6 @@ ArrayKlass::ArrayKlass(Symbol* name, KlassID id) :
|
|||
// Initialization of vtables and mirror object is done separatly from base_create_array_klass,
|
||||
// since a GC can happen. At this point all instance variables of the ArrayKlass must be setup.
|
||||
void ArrayKlass::complete_create_array_klass(ArrayKlass* k, Klass* super_klass, ModuleEntry* module_entry, TRAPS) {
|
||||
ResourceMark rm(THREAD);
|
||||
k->initialize_supers(super_klass, NULL, CHECK);
|
||||
k->vtable().initialize_vtable(false, CHECK);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue