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

ruby-changes:35397

From: kazu <ko1@a...>
Date: Tue, 9 Sep 2014 22:09:22 +0900 (JST)
Subject: [ruby-changes:35397] kazu:r47479 (trunk): s/stressfull/stressful/g

kazu	2014-09-09 22:09:14 +0900 (Tue, 09 Sep 2014)

  New Revision: 47479

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

  Log:
    s/stressfull/stressful/g

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47478)
+++ ChangeLog	(revision 47479)
@@ -77,7 +77,7 @@ Tue Sep  9 14:21:50 2014  Koichi Sasada https://github.com/ruby/ruby/blob/trunk/ChangeLog#L77
 
 Tue Sep  9 14:09:36 2014  Koichi Sasada  <ko1@a...>
 
-	* gc.c: move rb_objspace_t::flags::gc_stressfull after during_gc
+	* gc.c: move rb_objspace_t::flags::gc_stressful after during_gc
 	  to make accessing both parameters easy.
 
 	* gc.c (heap_get_freeobj): add LIKELY() hint.
@@ -89,14 +89,14 @@ Tue Sep  9 14:09:36 2014  Koichi Sasada https://github.com/ruby/ruby/blob/trunk/ChangeLog#L89
 
 Tue Sep  9 13:51:32 2014  Koichi Sasada  <ko1@a...>
 
-	* gc.c: add rb_objspace_t::flags::gc_stressfull and
-	  ruby_gc_stressfull macro.
+	* gc.c: add rb_objspace_t::flags::gc_stressful and
+	  ruby_gc_stressful macro.
 	  Rename objspace->gc_stress to objspace->gc_stress_mode.
 
 	  If objspace->gc_stress_mode is true (!nil and !false) then
-	  ruby_gc_stressfull becomes TRUE.
+	  ruby_gc_stressful becomes TRUE.
 
-	  ruby_gc_stressfull will speedup newobj_of() slightly.
+	  ruby_gc_stressful will speedup newobj_of() slightly.
 
 	* gc.c: initialize ruby_gc_stress(full|_mode) by gc_params.gc_stress
 	  even if ENABLE_VM_OBJSPACE is false.
Index: gc.c
===================================================================
--- gc.c	(revision 47478)
+++ gc.c	(revision 47479)
@@ -469,7 +469,7 @@ typedef struct rb_objspace { https://github.com/ruby/ruby/blob/trunk/gc.c#L469
 	unsigned int dont_gc : 1;
 	unsigned int dont_incremental : 1;
 	unsigned int during_gc : 1;
-	unsigned int gc_stressfull: 1;
+	unsigned int gc_stressful: 1;
 #if USE_RGENGC
 	unsigned int during_minor_gc : 1;
 #endif
@@ -686,7 +686,7 @@ VALUE *ruby_initial_gc_stress_ptr = &rub https://github.com/ruby/ruby/blob/trunk/gc.c#L686
 #define finalizing		objspace->atomic_flags.finalizing
 #define finalizer_table 	objspace->finalizer_table
 #define global_list		objspace->global_list
-#define ruby_gc_stressfull	objspace->flags.gc_stressfull
+#define ruby_gc_stressful	objspace->flags.gc_stressful
 #define ruby_gc_stress_mode     objspace->gc_stress_mode
 
 #define is_marking(objspace)             ((objspace)->flags.stat == gc_stat_marking)
@@ -1595,14 +1595,14 @@ newobj_of(VALUE klass, VALUE flags, VALU https://github.com/ruby/ruby/blob/trunk/gc.c#L1595
     rb_objspace_t *objspace = &rb_objspace;
     VALUE obj;
 
-    if (UNLIKELY(during_gc || ruby_gc_stressfull)) {
+    if (UNLIKELY(during_gc || ruby_gc_stressful)) {
 	if (during_gc) {
 	    dont_gc = 1;
 	    during_gc = 0;
 	    rb_bug("object allocation during garbage collection phase");
 	}
 
-	if (ruby_gc_stressfull) {
+	if (ruby_gc_stressful) {
 	    if (!garbage_collect(objspace, FALSE, FALSE, FALSE, GPR_FLAG_NEWOBJ)) {
 		rb_memerror();
 	    }
@@ -5803,7 +5803,7 @@ gc_start(rb_objspace_t *objspace, const https://github.com/ruby/ruby/blob/trunk/gc.c#L5803
 
     gc_enter(objspace, "gc_start");
 
-    if (ruby_gc_stressfull) {
+    if (ruby_gc_stressful) {
 	int flag = FIXNUM_P(ruby_gc_stress_mode) ? FIX2INT(ruby_gc_stress_mode) : 0;
 
 	if ((flag & (1<<gc_stress_no_major)) == 0) {
@@ -6501,7 +6501,7 @@ gc_stress_get(VALUE self) https://github.com/ruby/ruby/blob/trunk/gc.c#L6501
 static void
 gc_stress_set(rb_objspace_t *objspace, VALUE flag)
 {
-    objspace->flags.gc_stressfull = RTEST(flag);
+    objspace->flags.gc_stressful = RTEST(flag);
     objspace->gc_stress_mode = flag;
 }
 
@@ -6948,7 +6948,7 @@ atomic_sub_nounderflow(size_t *var, size https://github.com/ruby/ruby/blob/trunk/gc.c#L6948
 static void
 objspace_malloc_gc_stress(rb_objspace_t *objspace)
 {
-    if (ruby_gc_stressfull && ruby_native_thread_p()) {
+    if (ruby_gc_stressful && ruby_native_thread_p()) {
 	garbage_collect_with_gvl(objspace, gc_stress_full_mark_after_malloc_p(), TRUE, TRUE, GPR_FLAG_STRESS | GPR_FLAG_MALLOC);
     }
 }
@@ -7759,7 +7759,7 @@ gc_prof_setup_new_record(rb_objspace_t * https://github.com/ruby/ruby/blob/trunk/gc.c#L7759
 	MEMZERO(record, gc_profile_record, 1);
 
 	/* setup before-GC parameter */
-	record->flags = reason | (ruby_gc_stressfull ? GPR_FLAG_STRESS : 0);
+	record->flags = reason | (ruby_gc_stressful ? GPR_FLAG_STRESS : 0);
 #if MALLOC_ALLOCATED_SIZE
 	record->allocated_size = malloc_allocated_size;
 #endif

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

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