mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8305757: Call Method::compute_has_loops_flag() when creating CDS archive
Reviewed-by: coleenp, ccheung
This commit is contained in:
parent
eb8d8cdddd
commit
c7faf60201
3 changed files with 12 additions and 0 deletions
|
@ -2624,6 +2624,16 @@ void InstanceKlass::init_shared_package_entry() {
|
|||
#endif
|
||||
}
|
||||
|
||||
void InstanceKlass::compute_has_loops_flag_for_methods() {
|
||||
Array<Method*>* methods = this->methods();
|
||||
for (int index = 0; index < methods->length(); ++index) {
|
||||
Method* m = methods->at(index);
|
||||
if (!m->is_overpass()) { // work around JDK-8305771
|
||||
m->compute_has_loops_flag();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void InstanceKlass::restore_unshareable_info(ClassLoaderData* loader_data, Handle protection_domain,
|
||||
PackageEntry* pkg_entry, TRAPS) {
|
||||
// InstanceKlass::add_to_hierarchy() sets the init_state to loaded
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue