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

strip trailing spaces [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2020-09-19 17:40:31 +09:00
parent 6cb6d5abc3
commit 702cebf104
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
3 changed files with 6 additions and 6 deletions

View file

@ -239,7 +239,7 @@ io_wait(int argc, VALUE *argv, VALUE io)
} }
} else if (argc == 2) { } else if (argc == 2) {
events = RB_NUM2UINT(argv[0]); events = RB_NUM2UINT(argv[0]);
if (argv[1] != Qnil) { if (argv[1] != Qnil) {
timeout = argv[1]; timeout = argv[1];
} }

6
gc.c
View file

@ -3395,7 +3395,7 @@ should_be_finalizable(VALUE obj)
* def initialize(data_needed_for_finalization) * def initialize(data_needed_for_finalization)
* ObjectSpace.define_finalizer(self, self.class.create_finalizer(data_needed_for_finalization)) * ObjectSpace.define_finalizer(self, self.class.create_finalizer(data_needed_for_finalization))
* end * end
* *
* def self.create_finalizer(data_needed_for_finalization) * def self.create_finalizer(data_needed_for_finalization)
* proc { * proc {
* puts "finalizing #{data_needed_for_finalization}" * puts "finalizing #{data_needed_for_finalization}"
@ -3408,7 +3408,7 @@ should_be_finalizable(VALUE obj)
* def initialize(data_needed_for_finalization) * def initialize(data_needed_for_finalization)
* @data_needed_for_finalization = data_needed_for_finalization * @data_needed_for_finalization = data_needed_for_finalization
* end * end
* *
* def call(id) * def call(id)
* puts "finalizing #{@data_needed_for_finalization}" * puts "finalizing #{@data_needed_for_finalization}"
* end * end
@ -7739,7 +7739,7 @@ static inline void
gc_enter(rb_objspace_t *objspace, const char *event, unsigned int *lock_lev) gc_enter(rb_objspace_t *objspace, const char *event, unsigned int *lock_lev)
{ {
// stop other ractors // stop other ractors
RB_VM_LOCK_ENTER_LEV(lock_lev); RB_VM_LOCK_ENTER_LEV(lock_lev);
rb_vm_barrier(); rb_vm_barrier();

View file

@ -492,7 +492,7 @@ ractor_copy_setup(struct rb_ractor_basket *b, VALUE obj)
#if 0 #if 0
// TODO: consider custom copy protocol // TODO: consider custom copy protocol
switch (BUILTIN_TYPE(obj)) { switch (BUILTIN_TYPE(obj)) {
} }
#endif #endif
b->v = rb_marshal_dump(obj, Qnil); b->v = rb_marshal_dump(obj, Qnil);
@ -1357,7 +1357,7 @@ ractor_atexit_yield(rb_execution_context_t *ec, rb_ractor_t *cr, VALUE v, bool e
struct rb_ractor_basket basket; struct rb_ractor_basket basket;
ractor_basket_setup(ec, &basket, v, Qfalse, exc); ractor_basket_setup(ec, &basket, v, Qfalse, exc);
retry: retry:
if (ractor_try_yield(ec, cr, &basket)) { if (ractor_try_yield(ec, cr, &basket)) {
// OK. // OK.