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

ruby-changes:61665

From: Nobuyoshi <ko1@a...>
Date: Thu, 11 Jun 2020 10:29:50 +0900 (JST)
Subject: [ruby-changes:61665] 1fb16dbb6e (master): Adjusted indents [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=1fb16dbb6e

From 1fb16dbb6e28b9f32f92554d29e646e088b21a98 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 11 Jun 2020 09:49:42 +0900
Subject: Adjusted indents [ci skip]


diff --git a/gc.c b/gc.c
index d4ed316..b8c5239 100644
--- a/gc.c
+++ b/gc.c
@@ -4207,26 +4207,25 @@ gc_page_sweep(rb_objspace_t *objspace, rb_heap_t *heap, struct heap_page *sweep_ https://github.com/ruby/ruby/blob/trunk/gc.c#L4207
                 asan_unpoison_object(vp, false);
 		if (bitset & 1) {
                     switch (BUILTIN_TYPE(vp)) {
-		      default: { /* majority case */
-			  gc_report(2, objspace, "page_sweep: free %p\n", (void *)p);
+		      default: /* majority case */
+                        gc_report(2, objspace, "page_sweep: free %p\n", (void *)p);
 #if RGENGC_CHECK_MODE
-			  if (!is_full_marking(objspace)) {
-                              if (RVALUE_OLD_P(vp)) rb_bug("page_sweep: %p - old while minor GC.", (void *)p);
-                              if (rgengc_remembered_sweep(objspace, vp)) rb_bug("page_sweep: %p - remembered.", (void *)p);
-			  }
-#endif
-                          if (obj_free(objspace, vp)) {
-			      final_slots++;
-			  }
-			  else {
-			      (void)VALGRIND_MAKE_MEM_UNDEFINED((void*)p, sizeof(RVALUE));
-                              heap_page_add_freeobj(objspace, sweep_page, vp);
-                              gc_report(3, objspace, "page_sweep: %s is added to freelist\n", obj_info(vp));
-			      freed_slots++;
-                              asan_poison_object(vp);
-			  }
-			  break;
-		      }
+                        if (!is_full_marking(objspace)) {
+                            if (RVALUE_OLD_P(vp)) rb_bug("page_sweep: %p - old while minor GC.", (void *)p);
+                            if (rgengc_remembered_sweep(objspace, vp)) rb_bug("page_sweep: %p - remembered.", (void *)p);
+                        }
+#endif
+                        if (obj_free(objspace, vp)) {
+                            final_slots++;
+                        }
+                        else {
+                            (void)VALGRIND_MAKE_MEM_UNDEFINED((void*)p, sizeof(RVALUE));
+                            heap_page_add_freeobj(objspace, sweep_page, vp);
+                            gc_report(3, objspace, "page_sweep: %s is added to freelist\n", obj_info(vp));
+                            freed_slots++;
+                            asan_poison_object(vp);
+                        }
+                        break;
 
 			/* minor cases */
 		      case T_ZOMBIE:
-- 
cgit v0.10.2


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

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