1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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:
kou 2013-06-26 14:13:20 +00:00
parent 7cc4b8097c
commit 7b52f3a722
2 changed files with 7 additions and 2 deletions

View file

@ -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>
* include/ruby/intern.h (rb_enumeratorize_with_size): cast for

4
gc.c
View file

@ -611,7 +611,7 @@ is_before_sweep(VALUE obj)
if (is_lazy_sweeping(objspace)) {
slot = objspace->heap.sweep_slots;
while (slot) {
if(slot->header == GET_HEAP_HEADER(obj))
if (slot->header == GET_HEAP_HEADER(obj))
return TRUE;
slot = slot->next;
}
@ -3987,7 +3987,7 @@ rb_gc_force_recycle(VALUE p)
#if USE_RGENGC
CLEAR_IN_BITMAP(GET_HEAP_REMEMBERSET_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);
}
#endif