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

Change link_and_cleanup_shared_classes(CATCH) to CHECK

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 17
    • 17
    • hotspot
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: