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

ruby-changes:32092

From: tmm1 <ko1@a...>
Date: Fri, 13 Dec 2013 16:30:38 +0900 (JST)
Subject: [ruby-changes:32092] tmm1:r44171 (trunk): gc.c: GC.latest_gc_info reports most interesting major_by flag

tmm1	2013-12-13 16:30:33 +0900 (Fri, 13 Dec 2013)

  New Revision: 44171

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

  Log:
    gc.c: GC.latest_gc_info reports most interesting major_by flag
    
    * gc.c (gc_info_decode): Use :major_by=>:nofree as fallback reason
      when other trigger conditions are present.

  Modified files:
    trunk/ChangeLog
    trunk/gc.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44170)
+++ ChangeLog	(revision 44171)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Dec 13 16:27:17 2013  Aman Gupta <ruby@t...>
+
+	* gc.c (gc_info_decode): Use :major_by=>:nofree as fallback reason
+	  when other trigger conditions are present.
+
 Fri Dec 13 13:25:30 2013  Koichi Sasada  <ko1@a...>
 
 	* error.c: add Exception#backtrace_locations.
Index: gc.c
===================================================================
--- gc.c	(revision 44170)
+++ gc.c	(revision 44171)
@@ -5213,7 +5213,6 @@ gc_info_decode(int flags, VALUE hash_or_ https://github.com/ruby/ruby/blob/trunk/gc.c#L5213
 	rb_hash_aset(hash, sym_##name, (attr));
 
     major_by =
-      (flags & GPR_FLAG_MAJOR_BY_NOFREE) ? sym_nofree :
       (flags & GPR_FLAG_MAJOR_BY_OLDGEN) ? sym_oldgen :
       (flags & GPR_FLAG_MAJOR_BY_SHADY)  ? sym_shady :
       (flags & GPR_FLAG_MAJOR_BY_RESCAN) ? sym_rescan :
@@ -5221,6 +5220,7 @@ gc_info_decode(int flags, VALUE hash_or_ https://github.com/ruby/ruby/blob/trunk/gc.c#L5220
 #if RGENGC_ESTIMATE_OLDMALLOC
       (flags & GPR_FLAG_MAJOR_BY_OLDMALLOC) ? sym_oldmalloc :
 #endif
+      (flags & GPR_FLAG_MAJOR_BY_NOFREE) ? sym_nofree :
       Qnil;
     SET(major_by, major_by);
 

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

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