From 7d359f9b6955908954e56cab78bf16d9f0e93d24 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 30 Oct 2018 21:01:55 +0000 Subject: revert r65444 and r65446 because of commit miss git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- enum.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'enum.c') diff --git a/enum.c b/enum.c index 3be6941c3a..9485b7eb60 100644 --- a/enum.c +++ b/enum.c @@ -14,7 +14,6 @@ #include "ruby/util.h" #include "id.h" #include "symbol.h" -#include "transient_heap.h" #include @@ -1172,10 +1171,9 @@ enum_sort_by(VALUE obj) rb_ary_concat(ary, buf); } if (RARRAY_LEN(ary) > 2) { - rb_ary_transient_heap_evacuate(ary, TRUE); /* should be malloc heap */ - RARRAY_PTR_USE(ary, ptr, - ruby_qsort(ptr, RARRAY_LEN(ary)/2, 2*sizeof(VALUE), - sort_by_cmp, (void *)ary)); + RARRAY_PTR_USE(ary, ptr, + ruby_qsort(ptr, RARRAY_LEN(ary)/2, 2*sizeof(VALUE), + sort_by_cmp, (void *)ary)); } if (RBASIC(ary)->klass) { rb_raise(rb_eRuntimeError, "sort_by reentered"); -- cgit v1.2.3