diff options
Diffstat (limited to 'java/sablevm/files/patch-af')
-rw-r--r-- | java/sablevm/files/patch-af | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/java/sablevm/files/patch-af b/java/sablevm/files/patch-af new file mode 100644 index 000000000000..8d76863351c6 --- /dev/null +++ b/java/sablevm/files/patch-af @@ -0,0 +1,12 @@ +--- work/sablevm-1.0.6/src/libsablevm/thread.c.orig Fri Dec 13 11:29:17 2002 ++++ work/sablevm-1.0.6/src/libsablevm/thread.c Fri Dec 13 11:29:19 2002 +@@ -229,7 +229,8 @@ + void *new_stack; + + /* detect overflows */ +- if (new_size <= current_size) ++ if ((vm->stack_max_size != 0 && new_size > vm->stack_max_size) || ++ new_size <= current_size) + { + _svmf_error_OutOfMemoryError (env); + return JNI_ERR; |