Index: include/version_svn_tag.h =================================================================== --- include/version_svn_tag.h (revision 429456) +++ include/version_svn_tag.h (working copy) @@ -17,6 +17,6 @@ #ifndef _VERSION_SVN_TAG_ #define _VERSION_SVN_TAG_ -#define VERSION_SVN_TAG "427663" +#define VERSION_SVN_TAG "${svn.revision}" #endif // _VERSION_SVN_TAG_ Index: include/exceptions.h =================================================================== --- include/exceptions.h (revision 429456) +++ include/exceptions.h (working copy) @@ -270,5 +270,6 @@ void init_stack_info(); VMEXPORT size_t get_available_stack_size(); VMEXPORT bool check_available_stack_size(size_t required_size); +VMEXPORT size_t get_default_stack_size(); #endif // _EXCEPTIONS_H_ Index: src/jit/compile.cpp =================================================================== --- src/jit/compile.cpp (revision 429456) +++ src/jit/compile.cpp (working copy) @@ -747,7 +747,7 @@ return JIT_SUCCESS; } else if (method->get_state()==Method::ST_NotCompiled && exn_raised()) { return JIT_FAILURE; - } else if(!check_available_stack_size(256*1024)) { + } else if(!check_available_stack_size(get_default_stack_size()/100)) { return JIT_FAILURE; } Index: src/util/linux/signals_ia32.cpp =================================================================== --- src/util/linux/signals_ia32.cpp (revision 429456) +++ src/util/linux/signals_ia32.cpp (working copy) @@ -289,7 +289,10 @@ - get_guard_page_size() - get_guard_stack_size(); return available_stack_size; } - +size_t get_default_stack_size() { + size_t default_stack_size = get_stack_size(); + return default_stack_size; +} bool check_available_stack_size(size_t required_size) { if (get_available_stack_size() < required_size) { exn_raise_by_name("java/lang/StackOverflowError"); Index: src/util/win/ia32/nt_exception_filter.cpp =================================================================== --- src/util/win/ia32/nt_exception_filter.cpp (revision 429456) +++ src/util/win/ia32/nt_exception_filter.cpp (working copy) @@ -259,7 +259,10 @@ - get_guard_page_size() - get_guard_stack_size(); return available_stack_size; } - +size_t get_default_stack_size() { + size_t default_stack_size = get_stack_size(); + return default_stack_size; +} bool check_available_stack_size(size_t required_size) { if (get_available_stack_size() < required_size) { exn_raise_by_name("java/lang/StackOverflowError");