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

It's not possible to specify the stack size for JWS applications

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.0.1
    • deploy
    • x86
    • windows_nt, windows_2000



      Name: nt126004 Date: 01/18/2002


      FULL PRODUCT VERSION :
      java version "1.3.1_01"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01a)
      Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)

      A DESCRIPTION OF THE PROBLEM :
      It's not possible to specify the stack size for JWS
      applications. I would like to be able to set the initial
      and maximum stack size for my application. Today it is
      possible to alter the initial and maximum heap size from
      within the JNLP file. Why not expose a method for setting
      the stack size as well?

      Consider the case where, as in my situation, you're
      using a native library that uses a lot of stack and
      there's no way to change this piece of code (It relies
      heavily upon ALLOCA calls to allocate memory on the
      stack just for speed).

      I can think of two workarounds however (untested):
      1) I could modify java.exe, using a tool such as
      editbin (on windows), so that it has more stack
      available. I don't know if this affects the amount of
      stack space available for native libraries.
      2) I could launch a small program that uses a native
      library that starts a new JVM, using the JNI API, and
      set the initial stack space in this step.

      This bug can be reproduced always.


      (Review ID: 137789)
      ======================================================================

            herrick Andy Herrick (Inactive)
            nthompsosunw Nathanael Thompson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: