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

adjust style

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-06-07 02:52:42 +00:00
parent 5385ae9af4
commit 83db393e48
2 changed files with 6 additions and 6 deletions

View file

@ -412,9 +412,9 @@ ary_new(VALUE klass, long capa)
ARY_SET_PTR(ary, ptr);
ARY_SET_CAPA(ary, capa);
ARY_SET_HEAP_LEN(ary, 0);
} else {
}
else {
ary = ary_alloc(klass);
}
return ary;

8
gc.c
View file

@ -2156,9 +2156,9 @@ slot_sweep_body(rb_objspace_t *objspace, struct heaps_slot *sweep_slot, const in
bits[BITMAP_INDEX(p)] |= BITMAP_BIT(p)-1;
bits[BITMAP_INDEX(pend)] |= ~(BITMAP_BIT(pend) - 1);
for(i=0;i<HEAP_BITMAP_LIMIT;i++){
for (i=0; i < HEAP_BITMAP_LIMIT; i++) {
bitset = ~bits[i];
if(bitset){
if (bitset) {
p = offset + i * (sizeof(uintptr_t) * CHAR_BIT);
do {
if ((bitset & 1) && BUILTIN_TYPE(p) != T_ZOMBIE) {
@ -3603,8 +3603,8 @@ rgengc_rememberset_mark(rb_objspace_t *objspace)
offset = p - NUM_IN_SLOT(p);
for(j=0;j< HEAP_BITMAP_LIMIT;j++){
if(bits[j]){
for (j=0; j < HEAP_BITMAP_LIMIT; j++) {
if (bits[j]) {
p = offset + j * (sizeof(uintptr_t) * CHAR_BIT);
bitset = bits[j];
do {