From c39797e8724683e91618168bd993ac467b81eda8 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 1 Nov 2018 08:53:44 +0000 Subject: introduce USE_TRANSIENT_HEAP to enable/disable theap. * include/ruby/ruby.h: intrdocue `USE_TRANSIENT_HEAP` macro to enable/disable transient heap. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 7bf5e11453..b92e17c072 100644 --- a/hash.c +++ b/hash.c @@ -499,8 +499,6 @@ hash_array_set(VALUE hash, struct li_table *li) #define RHASH_SET_ST_FLAG(h) FL_SET_RAW(h, RHASH_ST_TABLE_FLAG) #define RHASH_UNSET_ST_FLAG(h) FL_UNSET_RAW(h, RHASH_ST_TABLE_FLAG) -#define RHASH_SET_TRANSIENT_FLAG(h) FL_SET_RAW(h, RHASH_TRANSIENT_FLAG) -#define RHASH_UNSET_TRANSIENT_FLAG(h) FL_UNSET_RAW(h, RHASH_TRANSIENT_FLAG) #define RHASH_ARRAY_BOUND_SET(h, n) do { \ long tmp_n = n; \ @@ -1030,6 +1028,7 @@ linear_clear(VALUE hash) } } +#if USE_TRANSIENT_HEAP void rb_hash_transient_heap_evacuate(VALUE hash, int promote) { @@ -1056,7 +1055,7 @@ rb_hash_transient_heap_evacuate(VALUE hash, int promote) } hash_verify(hash); } - +#endif typedef int st_foreach_func(st_data_t, st_data_t, st_data_t); -- cgit v1.2.3