After JDK-8178350, try removing this line inside InstanceKlass::link_class_impl():
- ResourceMark rm(THREAD); // delete
vtable().initialize_vtable(true, CHECK_false);
itable().initialize_itable(true, CHECK_false);
You will get an assert about missing ResourceMark. It's unclear to me whether whether the allocated object(s) should be scoped, or should be returned to a higher scope. If it's the former, it's better to remove the above ResourceMark, and add a ResourceMark where it's needed.
More investigation is needed.
- ResourceMark rm(THREAD); // delete
vtable().initialize_vtable(true, CHECK_false);
itable().initialize_itable(true, CHECK_false);
You will get an assert about missing ResourceMark. It's unclear to me whether whether the allocated object(s) should be scoped, or should be returned to a higher scope. If it's the former, it's better to remove the above ResourceMark, and add a ResourceMark where it's needed.
More investigation is needed.