diff options
author | Bryce McKinlay <mckinlay@redhat.com> | 2005-11-17 20:25:57 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2005-11-17 20:25:57 +0000 |
commit | 11922361e4a39efa05cc2a807d656dc5bfb858b3 (patch) | |
tree | 5e88137f0a78a8faff6c52f9de564f61a19bcecd /libjava/include/jvm.h | |
parent | f9314d012c1b213b95ee71a99b9edbe9be0e9118 (diff) | |
download | gcc-11922361e4a39efa05cc2a807d656dc5bfb858b3.zip gcc-11922361e4a39efa05cc2a807d656dc5bfb858b3.tar.gz gcc-11922361e4a39efa05cc2a807d656dc5bfb858b3.tar.bz2 |
Implement -Xss.
* include/jvm.h (gcj::stack_size): Declare.
(_Jv_StackSize): Declare.
* posix-threads.cc (_Jv_InitThreads): Validate gcj::stack_size.
(_Jv_ThreadStart): Set stack size if specified.
* prims.cc (gcj::stack_size): Define.
(parse_memory_size): Renamed from parse_heap_size.
(_Jv_SetStackSize): Parse stack size argument and set
gcj::stack_size.
From-SVN: r107132
Diffstat (limited to 'libjava/include/jvm.h')
-rw-r--r-- | libjava/include/jvm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h index 6061300..fc104d6 100644 --- a/libjava/include/jvm.h +++ b/libjava/include/jvm.h @@ -233,6 +233,9 @@ namespace gcj /* When true, enable the bytecode verifier and BC-ABI verification. */ extern bool verifyClasses; + + /* Thread stack size specified by the -Xss runtime argument. */ + extern size_t stack_size; } // This class handles all aspects of class preparation and linking. @@ -363,6 +366,10 @@ void _Jv_SetMaximumHeapSize (const char *arg); during thread deregistration. */ void _Jv_FreeMethodCache (); +/* Set the stack size for threads. Parses ARG, a number which can + optionally have "k" or "m" appended. */ +void _Jv_SetStackSize (const char *arg); + extern "C" void JvRunMain (jclass klass, int argc, const char **argv); void _Jv_RunMain (jclass klass, const char *name, int argc, const char **argv, bool is_jar); |