Skip to content

Commit

Permalink
* remove trailing spaces, expand tabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
matzbot committed Jun 19, 2019
1 parent 3e5b885 commit cbe06cd
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bootstraptest/runner.rb
Expand Up @@ -268,7 +268,7 @@ def show_limit(testsrc, opt = '', **argh)
$stderr.print '.'
$stderr.print @reset
$stderr.puts if @verbose

if @tty
$stderr.puts "#{erase}#{result}"
else
Expand Down
4 changes: 2 additions & 2 deletions bootstraptest/test_thread.rb
Expand Up @@ -2,7 +2,7 @@
threads = []
begin
threads << Thread.new{sleep}
raise Exception, "skipping" if threads.count >= 10_000
rescue Exception => error
puts "Thread count: #{threads.count} (#{error})"
Expand All @@ -15,7 +15,7 @@
fiber = Fiber.new{Fiber.yield}
fiber.resume
fibers << fiber
raise Exception, "skipping" if fibers.count >= 10_000
rescue Exception => error
puts "Fiber count: #{fibers.count} (#{error})"
Expand Down
20 changes: 10 additions & 10 deletions thread.c
Expand Up @@ -702,15 +702,15 @@ thread_do_start(rb_thread_t *th)
void rb_ec_clear_current_thread_trace_func(const rb_execution_context_t *ec);
rb_control_frame_t *
rb_vm_push_frame(rb_execution_context_t *sec,
const rb_iseq_t *iseq,
VALUE type,
VALUE self,
VALUE specval,
VALUE cref_or_me,
const VALUE *pc,
VALUE *sp,
int local_size,
int stack_max);
const rb_iseq_t *iseq,
VALUE type,
VALUE self,
VALUE specval,
VALUE cref_or_me,
const VALUE *pc,
VALUE *sp,
int local_size,
int stack_max);

static int
thread_start_func_2(rb_thread_t *th, VALUE *stack_start, VALUE *register_stack_start)
Expand Down Expand Up @@ -817,7 +817,7 @@ thread_start_func_2(rb_thread_t *th, VALUE *stack_start, VALUE *register_stack_s
rb_threadptr_unlock_all_locking_mutexes(th);
rb_check_deadlock(th->vm);

rb_fiber_close(th->ec->fiber_ptr);
rb_fiber_close(th->ec->fiber_ptr);
}
thread_cleanup_func(th, FALSE);
gvl_release(th->vm);
Expand Down
2 changes: 1 addition & 1 deletion thread_pthread.c
Expand Up @@ -1157,7 +1157,7 @@ native_thread_create(rb_thread_t *th)
}
else {
pthread_attr_t attr;
const size_t stack_size = th->vm->default_params.thread_machine_stack_size + th->vm->default_params.thread_vm_stack_size;
const size_t stack_size = th->vm->default_params.thread_machine_stack_size + th->vm->default_params.thread_vm_stack_size;
const size_t space = space_size(stack_size);

th->ec->machine.stack_maxsize = stack_size - space;
Expand Down

0 comments on commit cbe06cd

Please sign in to comment.