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>)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0, 1.4.1, 1.4.1_02, 1.4.2_03, 5.0
    • hotspot
    • generic, x86
    • generic, linux, windows_nt, windows_2000

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: