void MetaspaceShared::preload_and_dump_impl(TRAPS) {
...
link_and_cleanup_shared_classes(CATCH);
...
}
But there's a valid reason for an exception to happen in this case:
link_and_cleanup_shared_classes
-> link_class_for_cds
-> ik->constants()->resolve_class_constants(CHECK_(false)); // may throw OOM when interning strings.
We should propagate this exception back to MetaspaceShared::preload_and_dump, so it can be handled properly.
...
link_and_cleanup_shared_classes(CATCH);
...
}
But there's a valid reason for an exception to happen in this case:
link_and_cleanup_shared_classes
-> link_class_for_cds
-> ik->constants()->resolve_class_constants(CHECK_(false)); // may throw OOM when interning strings.
We should propagate this exception back to MetaspaceShared::preload_and_dump, so it can be handled properly.
- relates to
-
JDK-8261480 MetaspaceShared::preload_and_dump should check exceptions
-
- Resolved
-