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

CDS dump time restricts to interpreter_only mode

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P3 P3
    • tbd
    • 9, 10, 11
    • hotspot

      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.

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

              Created:
              Updated:
              Resolved: