Interference caused by inherited child process arguments in 'auto' AOTMode

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 25, 26
    • Component/s: hotspot

      In the 'auto' AOTMode, a spawned child process is used to create the AOT archive using the recorded configuration. The VM passes command-line arguments from the parent process to the spawned child process via the JAVA_TOOL_OPTIONS environment variable, which some minimum modifications to the arguments. Sharing the (mostly) complete sets of command-line arguments between the parent application process and the child process in cause issues in some cases, based on our findings with real world applications.

      For example, if the command-line argument specifies a socket path, both the parent application process and the child process connects to the same channel. When the child process completes the archive creation and exits, the socket may be closed as the child process disconnects. That affects the connection in the original parent application process.

            Assignee:
            Ioi Lam
            Reporter:
            Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: