summaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-09 11:18:31 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-09 11:18:31 +0000
commit674b405fd2e3c77d6ebfffa0fba39340d9598a70 (patch)
treedc324ff09a8dcf1b02de84f777581f17cbf1f09b /gc.c
parentff924e6ede56f8daad39c4865a4f2a096eb190fc (diff)
downloadruby-674b405fd2e3c77d6ebfffa0fba39340d9598a70.tar.gz
ruby-674b405fd2e3c77d6ebfffa0fba39340d9598a70.tar.xz
ruby-674b405fd2e3c77d6ebfffa0fba39340d9598a70.zip
* eval.c (ruby_longjmp): new macro to call longjmp, setcontext, etc.
(ruby_setjmp): new macro to call setjmp, getcontext, etc. (ruby_setjmp): call setjmp before getcontext to avoid IA64 register stack problem. [ruby-talk:144939] * gc.c (Init_stack): remove IA64_MAGIC_STACK_LIMIT. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gc.c b/gc.c
index 9e6a8f3d8..fdcff70d3 100644
--- a/gc.c
+++ b/gc.c
@@ -1483,14 +1483,6 @@ Init_stack(addr)
STACK_LEVEL_MAX = (rlim.rlim_cur - space) / sizeof(VALUE);
}
}
-#if defined(__ia64__) && (!defined(__GNUC__) || __GNUC__ < 2 || defined(__OPTIMIZE__))
- /* ruby crashes on IA64 if compiled with optimizer on */
- /* when if STACK_LEVEL_MAX is greater than this magic number */
- /* I know this is a kludge. I suspect optimizer bug */
-#define IA64_MAGIC_STACK_LIMIT 49152
- if (STACK_LEVEL_MAX > IA64_MAGIC_STACK_LIMIT)
- STACK_LEVEL_MAX = IA64_MAGIC_STACK_LIMIT;
-#endif
#endif
}