From 3ba2006aa443b45aba41d4a6bc8fa82505def4d3 Mon Sep 17 00:00:00 2001 From: tmm1 Date: Fri, 13 Dec 2013 07:30:33 +0000 Subject: 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ gc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 35e644f495..42488ac315 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Dec 13 16:27:17 2013 Aman Gupta + + * 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 * error.c: add Exception#backtrace_locations. diff --git a/gc.c b/gc.c index 5eb60e1e96..3d5aade54e 100644 --- a/gc.c +++ b/gc.c @@ -5213,7 +5213,6 @@ gc_info_decode(int flags, VALUE hash_or_key) 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_key) #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); -- cgit v1.2.3