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

Adjust indent

This commit is contained in:
Nobuyoshi Nakada 2019-06-19 20:40:49 +09:00
parent 659eda7f83
commit ab6d8d0b65
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60
3 changed files with 13 additions and 10 deletions

2
cont.c
View file

@ -1578,7 +1578,7 @@ rb_threadptr_root_fiber_release(rb_thread_t *th)
VM_ASSERT(th->ec->fiber_ptr->cont.type == FIBER_CONTEXT);
VM_ASSERT(th->ec->fiber_ptr->cont.self == 0);
// th->ec->fiber_ptr->cont.saved_ec.vm_stack = NULL;
// th->ec->fiber_ptr->cont.saved_ec.vm_stack = NULL;
fiber_free(th->ec->fiber_ptr);
if (th->ec == ruby_current_execution_context_ptr) {

12
gc.c
View file

@ -2341,7 +2341,8 @@ obj_free(rb_objspace_t *objspace, VALUE obj)
if (st_delete(objspace->obj_to_id_tbl, (st_data_t *)&obj, &id)) {
assert(id);
st_delete(objspace->id_to_obj_tbl, (st_data_t *)&id, NULL);
} else {
}
else {
rb_bug("Object ID see, but not in mapping table: %s\n", obj_info(obj));
}
}
@ -4553,7 +4554,8 @@ mark_hash(rb_objspace_t *objspace, VALUE hash)
{
if (rb_hash_compare_by_id_p(hash)) {
rb_hash_stlike_foreach(hash, pin_key_mark_value, (st_data_t)objspace);
} else {
}
else {
rb_hash_stlike_foreach(hash, mark_keyvalue, (st_data_t)objspace);
}
@ -9378,9 +9380,9 @@ rb_memerror(void)
VALUE exc;
if (0) {
// Print out pid, sleep, so you can attach debugger to see what went wrong:
fprintf(stderr, "rb_memerror pid=%d\n", getpid());
sleep(60);
// Print out pid, sleep, so you can attach debugger to see what went wrong:
fprintf(stderr, "rb_memerror pid=%d\n", getpid());
sleep(60);
}
if (during_gc) gc_exit(objspace, "rb_memerror");

9
vm.c
View file

@ -2710,10 +2710,11 @@ th_init(rb_thread_t *th, VALUE self)
if (self == 0) {
size_t size = th->vm->default_params.thread_vm_stack_size / sizeof(VALUE);
rb_ec_initialize_vm_stack(th->ec, ALLOC_N(VALUE, size), size);
} else {
VM_ASSERT(th->ec->cfp == NULL);
VM_ASSERT(th->ec->vm_stack == NULL);
VM_ASSERT(th->ec->vm_stack_size == 0);
}
else {
VM_ASSERT(th->ec->cfp == NULL);
VM_ASSERT(th->ec->vm_stack == NULL);
VM_ASSERT(th->ec->vm_stack_size == 0);
}
th->status = THREAD_RUNNABLE;