harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r432433 - in /incubator/harmony/enhanced/drlvm/trunk/vm/vmcore: include/exceptions.h src/jit/compile.cpp src/util/linux/signals_ia32.cpp src/util/win/ia32/nt_exception_filter.cpp
Date Thu, 17 Aug 2006 23:42:31 GMT
Author: geirm
Date: Thu Aug 17 16:42:30 2006
New Revision: 432433

URL: http://svn.apache.org/viewvc?rev=432433&view=rev
Log:
HARMONY-1086

applied - except for version_svn_tag.h  - tested w/ smoke tests

Lowers check for free stack space prior to JIT compile.

Things seem to work :)



Modified:
    incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/include/exceptions.h
    incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/compile.cpp
    incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp
    incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/win/ia32/nt_exception_filter.cpp

Modified: incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/include/exceptions.h
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/include/exceptions.h?rev=432433&r1=432432&r2=432433&view=diff
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/include/exceptions.h (original)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/include/exceptions.h Thu Aug 17 16:42:30
2006
@@ -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_

Modified: incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/compile.cpp
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/compile.cpp?rev=432433&r1=432432&r2=432433&view=diff
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/compile.cpp (original)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/jit/compile.cpp Thu Aug 17 16:42:30
2006
@@ -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;
     }
 

Modified: incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp?rev=432433&r1=432432&r2=432433&view=diff
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp (original)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/linux/signals_ia32.cpp Thu Aug
17 16:42:30 2006
@@ -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");

Modified: incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/win/ia32/nt_exception_filter.cpp
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/win/ia32/nt_exception_filter.cpp?rev=432433&r1=432432&r2=432433&view=diff
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/win/ia32/nt_exception_filter.cpp
(original)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/vmcore/src/util/win/ia32/nt_exception_filter.cpp
Thu Aug 17 16:42:30 2006
@@ -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");



Mime
View raw message