summaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authormichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-06-25 09:08:55 +0000
committermichal <michal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-06-25 09:08:55 +0000
commitac89f742b01ee8cc4af7c52905a9683d49c82099 (patch)
treedee1a5b5d76a9319befd99dfddd7d998f6029754 /gc.c
parent38d5c974114f8b2c8a2a0f9923c81155d8cbd80f (diff)
downloadruby-ac89f742b01ee8cc4af7c52905a9683d49c82099.tar.gz
ruby-ac89f742b01ee8cc4af7c52905a9683d49c82099.tar.xz
ruby-ac89f742b01ee8cc4af7c52905a9683d49c82099.zip
bring back _stklen for DJGPP [ruby-core:3084]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index 871f60b85..8816193f2 100644
--- a/gc.c
+++ b/gc.c
@@ -405,6 +405,11 @@ rb_data_object_alloc(klass, datap, dmark, dfree)
extern st_table *rb_class_tbl;
VALUE *rb_gc_stack_start = 0;
+#ifdef DJGPP
+/* set stack size (http://www.delorie.com/djgpp/v2faq/faq15_9.html) */
+unsigned int _stklen = 0x180000; /* 1.5 kB */
+#endif
+
#if defined(DJGPP) || defined(_WIN32_WCE)
static unsigned int STACK_LEVEL_MAX = 65535;
#elif defined(__human68k__)