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

CDS dump time restricts to interpreter_only mode

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 9, 10, 11
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:

      Description

      The following code in arguments.cpp sets up interpreter_only mode for CDS dump time.

          // -Xshare:dump
          } else if (match_option(option, "-Xshare:dump")) {
            if (FLAG_SET_CMDLINE(bool, DumpSharedSpaces, true) != Flag::SUCCESS) {
              return JNI_EINVAL;
            }
            set_mode_flags(_int); // Prevent compilation, which creates objects

      This restriction disallows AOT library being used at CDS dump time. We need to investigate if the requirement for using interpreter_only mode is still needed at CDS dump time and remove the limit if it no longer applies.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ccheung Calvin Cheung
                Reporter:
                jiangli Jiangli Zhou
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: