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

ruby-changes:60286

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Wed, 4 Mar 2020 12:31:17 +0900 (JST)
Subject: [ruby-changes:60286] 97fa6468dc (master): fix compile error w/ -DCALC_EXACT_MALLOC_SIZE

https://git.ruby-lang.org/ruby.git/commit/?id=97fa6468dc

From 97fa6468dc3b2e8be4a95caebbad54d5ddacec86 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?=
 <shyouhei@r...>
Date: Mon, 2 Mar 2020 11:20:50 +0900
Subject: fix compile error w/ -DCALC_EXACT_MALLOC_SIZE


diff --git a/gc.c b/gc.c
index 82f3d63..af740f9 100644
--- a/gc.c
+++ b/gc.c
@@ -9872,8 +9872,6 @@ objspace_malloc_fixup(rb_objspace_t *objspace, void *mem, size_t size) https://github.com/ruby/ruby/blob/trunk/gc.c#L9872
         info->gen = objspace->profile.count;
         info->file = ruby_malloc_info_file;
         info->line = info->file ? ruby_malloc_info_line : 0;
-#else
-        info->file = NULL;
 #endif
         mem = info + 1;
     }
@@ -10269,8 +10267,6 @@ ruby_mimmalloc(size_t size) https://github.com/ruby/ruby/blob/trunk/gc.c#L10267
         info->gen = 0;
         info->file = NULL;
         info->line = 0;
-#else
-        info->file = NULL;
 #endif
         mem = info + 1;
     }
-- 
cgit v0.10.2


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

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