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

PerformanceFaq should document stack sizes on windows

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • docs
    • rc
    • generic
    • generic
    • Not verified

      The following comes from feedback via the web:

      ============
      comments: There seems to be a dearth of information (and a surplus of misinformation) regarding stack sizes on Windows. The best information I've found (after a lot of searching) is in a bug report: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4689767. Many of the forums contain bad information, such as http://forum.java.sun.com/thread.jspa?forumID=37&threadID=418834, which claims that -Xss doesn't do anything on Windows.
      >
      > The HotSpot performance documentation (http://java.sun.com/docs/hotspot/PerformanceFAQ.html) says that on Windows, the default stack size is "whatever the default stack size is when creating a thread in the OS." At best that's true but unhelpful. At worst, it's mis-leading (the default stack size on Windows is generally 1Mb; however, bug id 4689767 points out that java.exe is linked to use a 256k stack).
      >
      > For additional observations on the Windows stack size behavior, please see my post in the forums at http://forum.java.sun.com/thread.jspa?threadID=610340.
      ###@###.### 2005-04-06 02:28:15 GMT

            sbohne Steve Bohne (Inactive)
            shommel Scott Hommel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: