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

ruby-changes:31350

From: nagachika <ko1@a...>
Date: Sat, 26 Oct 2013 16:07:47 +0900 (JST)
Subject: [ruby-changes:31350] nagachika:r43429 (ruby_2_0_0): * gc.c (gc_prof_set_heap_info): fix compile error when

nagachika	2013-10-26 16:07:35 +0900 (Sat, 26 Oct 2013)

  New Revision: 43429

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

  Log:
    * gc.c (gc_prof_set_heap_info): fix compile error when
      GC_PROFILE_MORE_DETAIL != 0.
      the patch is provided by ko1 (Koichi Sasada).

  Modified files:
    branches/ruby_2_0_0/ChangeLog
    branches/ruby_2_0_0/gc.c
    branches/ruby_2_0_0/version.h
Index: ruby_2_0_0/ChangeLog
===================================================================
--- ruby_2_0_0/ChangeLog	(revision 43428)
+++ ruby_2_0_0/ChangeLog	(revision 43429)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ChangeLog#L1
+Sat Oct 26 16:04:36 2013  CHIKANAGA Tomoyuki  <nagachika@r...>
+
+	* gc.c (gc_prof_set_heap_info): fix compile error when
+	  GC_PROFILE_MORE_DETAIL != 0.
+	  the patch is provided by ko1 (Koichi Sasada).
+
 Thu Oct 24 23:27:12 2013  CHIKANAGA Tomoyuki  <nagachika@r...>
 
 	* lib/rubygems: Update to RubyGems 2.0.12. [ruby-core:57818]
Index: ruby_2_0_0/gc.c
===================================================================
--- ruby_2_0_0/gc.c	(revision 43428)
+++ ruby_2_0_0/gc.c	(revision 43429)
@@ -4099,7 +4099,7 @@ gc_prof_set_malloc_info(rb_objspace_t *o https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/gc.c#L4099
 static inline void
 gc_prof_set_heap_info(rb_objspace_t *objspace, gc_profile_record *record)
 {
-    size_t live = objspace->heap.live_num;
+    size_t live = objspace_live_num(objspace);
     size_t total = heaps_used * HEAP_OBJ_LIMIT;
 
     record->heap_use_slots = heaps_used;
Index: ruby_2_0_0/version.h
===================================================================
--- ruby_2_0_0/version.h	(revision 43428)
+++ ruby_2_0_0/version.h	(revision 43429)
@@ -1,10 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/version.h#L1
 #define RUBY_VERSION "2.0.0"
-#define RUBY_RELEASE_DATE "2013-10-24"
-#define RUBY_PATCHLEVEL 340
+#define RUBY_RELEASE_DATE "2013-10-26"
+#define RUBY_PATCHLEVEL 341
 
 #define RUBY_RELEASE_YEAR 2013
 #define RUBY_RELEASE_MONTH 10
-#define RUBY_RELEASE_DAY 24
+#define RUBY_RELEASE_DAY 26
 
 #include "ruby/version.h"
 

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

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