Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8264196

Change link_and_cleanup_shared_classes(CATCH) to CHECK

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 17
    • hotspot
    • b20

      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.

            ccheung Calvin Cheung
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: