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

ruby-changes:28649

From: ko1 <ko1@a...>
Date: Tue, 14 May 2013 01:53:00 +0900 (JST)
Subject: [ruby-changes:28649] ko1:r40701 (trunk): * gc.c: disable GC_PROFILE_MORE_DETAIL (fix last commit).

ko1	2013-05-14 01:52:49 +0900 (Tue, 14 May 2013)

  New Revision: 40701

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

  Log:
    * gc.c: disable GC_PROFILE_MORE_DETAIL (fix last commit).
    * gc.c (gc_prof_set_malloc_info): fix "objspace->heap.live_num" to
      "objspace_live_num(objspace)". There is no such member variable.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40700)
+++ ChangeLog	(revision 40701)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue May 14 01:50:41 2013  Koichi Sasada  <ko1@a...>
+
+	* gc.c: disable GC_PROFILE_MORE_DETAIL (fix last commit).
+
+	* gc.c (gc_prof_set_malloc_info): fix "objspace->heap.live_num" to
+	  "objspace_live_num(objspace)". There is no such member variable.
+
 Tue May 14 01:25:55 2013  Koichi Sasada  <ko1@a...>
 
 	* gc.c: refactoring GC::Profiler.
Index: gc.c
===================================================================
--- gc.c	(revision 40700)
+++ gc.c	(revision 40701)
@@ -96,7 +96,7 @@ static ruby_gc_params_t initial_params = https://github.com/ruby/ruby/blob/trunk/gc.c#L96
 #define nomem_error GET_VM()->special_exceptions[ruby_error_nomemory]
 
 #ifndef GC_PROFILE_MORE_DETAIL
-#define GC_PROFILE_MORE_DETAIL 1
+#define GC_PROFILE_MORE_DETAIL 0
 #endif
 #ifndef GC_ENABLE_LAZY_SWEEP
 #define GC_ENABLE_LAZY_SWEEP 1
@@ -4037,7 +4037,7 @@ gc_prof_set_malloc_info(rb_objspace_t *o https://github.com/ruby/ruby/blob/trunk/gc.c#L4037
 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_total_objects = total;

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

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