diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-08-24 08:21:56 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1999-08-24 08:21:56 +0000 |
commit | a1b57d0add85a248666fb55c58aa8c0c772136fc (patch) | |
tree | 3d30e530b29103ce2884dff782592ddf7292f4df /gc.c | |
parent | a281c996689240dc204f0c534cfe21ee6cbb6863 (diff) | |
download | ruby-a1b57d0add85a248666fb55c58aa8c0c772136fc.tar.gz |
1.4.1 to be
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -890,7 +890,7 @@ void rb_gc() { struct gc_list *list; - struct FRAME *frame; + struct FRAME * volatile frame; /* gcc 2.7.2.3 -O2 bug?? */ jmp_buf save_regs_gc_mark; VALUE stack_end; @@ -907,8 +907,6 @@ rb_gc() /* mark frame stack */ for (frame = ruby_frame; frame; frame = frame->prev) { rb_gc_mark_frame(frame); - } - for (frame = ruby_frame; frame; frame = frame->prev) { if (frame->tmp) { struct FRAME *tmp = frame->tmp; while (tmp) { @@ -924,7 +922,7 @@ rb_gc() FLUSH_REGISTER_WINDOWS; /* This assumes that all registers are saved into the jmp_buf */ setjmp(save_regs_gc_mark); - mark_locations_array((VALUE*)&save_regs_gc_mark, sizeof(save_regs_gc_mark) / sizeof(VALUE *)); + mark_locations_array((VALUE*)save_regs_gc_mark, sizeof(save_regs_gc_mark) / sizeof(VALUE *)); rb_gc_mark_locations(rb_gc_stack_start, (VALUE*)&stack_end); #if defined(THINK_C) || defined(__human68k__) #ifndef __human68k__ |