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

VMThreadStackSize failing at max range

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 13
    • 11
    • hotspot

      "java -XX:+PrintFlagsRanges -version" reports:

           intx VMThreadStackSize [ 0 ... 9007199254740991 ] {pd product} {default}

      but "java -XX:VMThreadStackSize=9007199254740991 -version" results in:

      # ./build/macosx-x86_64-normal-server-release/jdk/bin/java -XX:VMThreadStackSize=9007199254740991 -version
      [0.006s][warning][os,thread] Failed to start thread - pthread_create failed (EAGAIN) for attributes: stacksize: 9007199254740992k, guardsize: 4k, detached.
      #
      # There is insufficient memory for the Java Runtime Environment to continue.
      # Cannot create worker GC thread. Out of system resources.
      # An error report file with more information is saved as:
      # /Volumes/Work/bugs/8195097/jdk11_rehn/hs_err_pid18970.log

            gziemski Gerard Ziemski
            gziemski Gerard Ziemski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: