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

ruby-changes:32198

From: ko1 <ko1@a...>
Date: Wed, 18 Dec 2013 17:04:19 +0900 (JST)
Subject: [ruby-changes:32198] ko1:r44277 (trunk): * gc.c (gc_profile_record_get): should return an empty array

ko1	2013-12-18 17:04:08 +0900 (Wed, 18 Dec 2013)

  New Revision: 44277

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

  Log:
    * gc.c (gc_profile_record_get): should return an empty array
      when profiling is active.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44276)
+++ ChangeLog	(revision 44277)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Dec 18 17:03:00 2013  Koichi Sasada  <ko1@a...>
+
+	* gc.c (gc_profile_record_get): should return an empty array
+	  when profiling is active.
+
 Wed Dec 18 16:49:40 2013  Koichi Sasada  <ko1@a...>
 
 	* gc.c (gc_profile_clear, gc_profile_enable): remove rest_sweep().
Index: gc.c
===================================================================
--- gc.c	(revision 44276)
+++ gc.c	(revision 44277)
@@ -7000,7 +7000,7 @@ gc_profile_record_get(void) https://github.com/ruby/ruby/blob/trunk/gc.c#L7000
     size_t i;
     rb_objspace_t *objspace = (&rb_objspace);
 
-    if (!gc_prof_enabled(objspace)) {
+    if (!objspace->profile.run) {
 	return Qnil;
     }
 

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

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