JDK-8200451 : CDS dump time restricts to interpreter_only mode
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9,10,11
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2018-03-29
  • Updated: 2019-07-23
  • Resolved: 2019-07-23
Related Reports
Relates :  
Relates :  
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.
Comments
Runtime Triage: This is not on our current list of priorities. We will consider this feature if we receive additional customer requirements.
23-07-2019

[~ccheung]Since you were handling the related issue, do you want to take this one? Thanks
04-01-2019