* gc.c (is_before_sweep): Add a missing space before a parenthesis.
* gc.c (rb_gc_force_recycle): Add a missing space around a parenthesis. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7cc4b8097c
commit
7b52f3a722
@ -1,3 +1,8 @@
|
|||||||
|
Wed Jun 26 23:11:14 2013 Kouhei Sutou <kou@cozmixng.org>
|
||||||
|
|
||||||
|
* gc.c (is_before_sweep): Add a missing space before a parenthesis.
|
||||||
|
* gc.c (rb_gc_force_recycle): Add a missing space around a parenthesis.
|
||||||
|
|
||||||
Wed Jun 26 22:44:00 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Wed Jun 26 22:44:00 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* include/ruby/intern.h (rb_enumeratorize_with_size): cast for
|
* include/ruby/intern.h (rb_enumeratorize_with_size): cast for
|
||||||
|
4
gc.c
4
gc.c
@ -611,7 +611,7 @@ is_before_sweep(VALUE obj)
|
|||||||
if (is_lazy_sweeping(objspace)) {
|
if (is_lazy_sweeping(objspace)) {
|
||||||
slot = objspace->heap.sweep_slots;
|
slot = objspace->heap.sweep_slots;
|
||||||
while (slot) {
|
while (slot) {
|
||||||
if(slot->header == GET_HEAP_HEADER(obj))
|
if (slot->header == GET_HEAP_HEADER(obj))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
slot = slot->next;
|
slot = slot->next;
|
||||||
}
|
}
|
||||||
@ -3987,7 +3987,7 @@ rb_gc_force_recycle(VALUE p)
|
|||||||
#if USE_RGENGC
|
#if USE_RGENGC
|
||||||
CLEAR_IN_BITMAP(GET_HEAP_REMEMBERSET_BITS(p), p);
|
CLEAR_IN_BITMAP(GET_HEAP_REMEMBERSET_BITS(p), p);
|
||||||
CLEAR_IN_BITMAP(GET_HEAP_OLDGEN_BITS(p), p);
|
CLEAR_IN_BITMAP(GET_HEAP_OLDGEN_BITS(p), p);
|
||||||
if(!is_before_sweep(p)){
|
if (!is_before_sweep(p)) {
|
||||||
CLEAR_IN_BITMAP(GET_HEAP_MARK_BITS(p), p);
|
CLEAR_IN_BITMAP(GET_HEAP_MARK_BITS(p), p);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user