[前][次][番号順一覧][スレッド一覧]

ruby-changes:40021

From: ko1 <ko1@a...>
Date: Sun, 11 Oct 2015 03:49:23 +0900 (JST)
Subject: [ruby-changes:40021] ko1:r52102 (trunk): * gc.c (newobj_of_slowpass): fix typo (pass -> path).

ko1	2015-10-11 03:49:05 +0900 (Sun, 11 Oct 2015)

  New Revision: 52102

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52102

  Log:
    * gc.c (newobj_of_slowpass): fix typo (pass -> path).
      Pointed out by Yukihiro Matsumoto  <matz@r...>.
    * gc.c (newobj_of_...): `of' is unnecessary.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
    trunk/vm_insnhelper.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52101)
+++ ChangeLog	(revision 52102)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Oct 11 03:48:46 2015  Koichi Sasada  <ko1@a...>
+
+	* gc.c (newobj_of_slowpass): fix typo (pass -> path).
+	  Pointed out by Yukihiro Matsumoto  <matz@r...>.
+
+	* gc.c (newobj_of_...): `of' is unnecessary.
+
 Sat Oct 10 19:04:42 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* ext/socket/udpsocket.c (udp_connect, udp_bind): get open files
Index: gc.c
===================================================================
--- gc.c	(revision 52101)
+++ gc.c	(revision 52102)
@@ -1702,7 +1702,7 @@ gc_event_hook_body(rb_thread_t *th, rb_o https://github.com/ruby/ruby/blob/trunk/gc.c#L1702
 } while (0)
 
 static inline VALUE
-newobj_of_init(rb_objspace_t *objspace, VALUE klass, VALUE flags, VALUE v1, VALUE v2, VALUE v3, VALUE obj, int hook_needed)
+newobj_init(rb_objspace_t *objspace, VALUE klass, VALUE flags, VALUE v1, VALUE v2, VALUE v3, VALUE obj, int hook_needed)
 {
     if (RGENGC_CHECK_MODE > 0) assert(BUILTIN_TYPE(obj) == T_NONE);
 
@@ -1784,10 +1784,10 @@ newobj_of_init(rb_objspace_t *objspace, https://github.com/ruby/ruby/blob/trunk/gc.c#L1784
     return obj;
 }
 
-NOINLINE(static VALUE newobj_of_slowpass(VALUE klass, VALUE flags, VALUE v1, VALUE v2, VALUE v3, rb_objspace_t *objspace));
+NOINLINE(static VALUE newobj_slowpath(VALUE klass, VALUE flags, VALUE v1, VALUE v2, VALUE v3, rb_objspace_t *objspace));
 
 static VALUE
-newobj_of_slowpass(VALUE klass, VALUE flags, VALUE v1, VALUE v2, VALUE v3, rb_objspace_t *objspace)
+newobj_slowpath(VALUE klass, VALUE flags, VALUE v1, VALUE v2, VALUE v3, rb_objspace_t *objspace)
 {
     VALUE obj;
 
@@ -1806,7 +1806,7 @@ newobj_of_slowpass(VALUE klass, VALUE fl https://github.com/ruby/ruby/blob/trunk/gc.c#L1806
     }
 
     obj = heap_get_freeobj(objspace, heap_eden);
-    return newobj_of_init(objspace, klass, flags, v1, v2, v3, obj, gc_event_hook_needed_p(objspace, RUBY_INTERNAL_EVENT_NEWOBJ));
+    return newobj_init(objspace, klass, flags, v1, v2, v3, obj, gc_event_hook_needed_p(objspace, RUBY_INTERNAL_EVENT_NEWOBJ));
 }
 
 static inline VALUE
@@ -1827,10 +1827,10 @@ newobj_of(VALUE klass, VALUE flags, VALU https://github.com/ruby/ruby/blob/trunk/gc.c#L1827
 
     if (LIKELY(!(during_gc || ruby_gc_stressful) && gc_event_hook_needed_p(objspace, RUBY_INTERNAL_EVENT_NEWOBJ) == FALSE &&
 	       (obj = heap_get_freeobj_head(objspace, heap_eden)) != Qfalse)) {
-	return newobj_of_init(objspace, klass, flags, v1, v2, v3, obj, FALSE);
+	return newobj_init(objspace, klass, flags, v1, v2, v3, obj, FALSE);
     }
     else {
-	return newobj_of_slowpass(klass, flags, v1, v2, v3, objspace);
+	return newobj_slowpath(klass, flags, v1, v2, v3, objspace);
     }
 }
 
Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 52101)
+++ vm_insnhelper.c	(revision 52102)
@@ -1343,7 +1343,7 @@ vm_callee_setup_arg(rb_thread_t *th, str https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L1343
 
 	CI_SET_FASTPATH(cc,
 			(UNLIKELY(ci->flag & VM_CALL_TAILCALL) ? vm_call_iseq_setup_tailcall_0start :
-			                                                  vm_call_iseq_setup_normal_0start),
+			                                         vm_call_iseq_setup_normal_0start),
 			(!IS_ARGS_SPLAT(ci) && !IS_ARGS_KEYWORD(ci) &&
 			 !(METHOD_ENTRY_VISI(cc->me) == METHOD_VISI_PROTECTED)));
 	return 0;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]