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
This commit is contained in:
Bryce McKinlay
2005-11-17 20:25:57 +00:00
committed by Bryce McKinlay
parent f9314d012c
commit 11922361e4
4 changed files with 53 additions and 5 deletions
+7
View File
@@ -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);