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

main thread stack size not the same as other threads on all platforms (-Xss<N>)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0, 1.4.1, 1.4.1_02, 1.4.2_03, 5.0
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • CPU:
      generic, x86
    • OS:
      generic, linux, windows_nt, windows_2000

      Description

      The stack for the main thread is created by the o/s when the process is
      created; the vm cannot later increase the size of this stack. The stack
      sizes for other java threads created by the vm are (mostly) controlled
      by the vm, and use the -Xss<N> value or a default. (The 'mostly' is
      because of operating system eccentricities.)

      The different stack sizes for the main thread vs. other threads means
      that some (typically recursive) routines may be able to run in one
      thread, but not in another. It also means that the -Xss<N> argument
      to set the thread stack size does not apply to all threads, at least
      on some platforms. This asymmetry should be eliminated.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hhuangsunw Hui Huang (Inactive)
                Reporter:
                jcoomes John Coomes
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: