File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change
1
+ Sat Jun 28 12:28:46 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
2
+
3
+ * gc.c (rb_gc_mark_locations): remove margin. [ruby-dev:20462]
4
+
5
+ * gc.c (Init_stack): add safety margin.
6
+
1
7
Fri May 30 11:25:58 2003 WATANABE Hirofumi <eban@ruby-lang.org>
2
8
3
9
* lib/irb/xmp.rb: sync with 1.8 ("irb/irb" -> "irb").
Original file line number Diff line number Diff line change @@ -434,7 +434,7 @@ rb_gc_mark_locations(start, end)
434
434
start = end ;
435
435
end = tmp ;
436
436
}
437
- n = end - start + 1 ;
437
+ n = end - start ;
438
438
mark_locations_array (start ,n );
439
439
}
440
440
@@ -1106,11 +1106,11 @@ Init_stack(addr)
1106
1106
if (!addr ) addr = (VALUE * )& addr ;
1107
1107
if (rb_gc_stack_start ) {
1108
1108
if (stack_growup_p (addr )) {
1109
- if (rb_gc_stack_start > addr )
1109
+ if (rb_gc_stack_start > -- addr )
1110
1110
rb_gc_stack_start = addr ;
1111
1111
}
1112
1112
else {
1113
- if (rb_gc_stack_start < addr )
1113
+ if (rb_gc_stack_start < ++ addr )
1114
1114
rb_gc_stack_start = addr ;
1115
1115
}
1116
1116
return ;
You can’t perform that action at this time.
0 commit comments