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)
======================================================================
- duplicates
-
JDK-4741481 webstart does not allow command line parameters to be passed to the jvm
-
- Closed
-
-
JDK-4790673 allow arbitrary VM args if JNLP Client verifys they are safe.
-
- Resolved
-