diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-09 11:18:31 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-09 11:18:31 +0000 |
commit | 674b405fd2e3c77d6ebfffa0fba39340d9598a70 (patch) | |
tree | dc324ff09a8dcf1b02de84f777581f17cbf1f09b /gc.c | |
parent | ff924e6ede56f8daad39c4865a4f2a096eb190fc (diff) | |
download | ruby-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.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -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 } |