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

Change link_and_cleanup_shared_classes(CATCH) to CHECK

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b20

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: