aboutsummaryrefslogtreecommitdiffstats
path: root/transient_heap.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-01 08:53:44 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-01 08:53:44 +0000
commitc39797e8724683e91618168bd993ac467b81eda8 (patch)
tree25bfba803716b7301a047bc579788bd8998cc29d /transient_heap.c
parentdcd0346265bfd346133e75c701b97fcb31c0ae6d (diff)
downloadruby-c39797e8724683e91618168bd993ac467b81eda8.tar.gz
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
Diffstat (limited to 'transient_heap.c')
-rw-r--r--transient_heap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/transient_heap.c b/transient_heap.c
index 50c0a51f2d..7b16bbbbfc 100644
--- a/transient_heap.c
+++ b/transient_heap.c
@@ -15,6 +15,7 @@
#include "transient_heap.h"
#include "debug_counter.h"
+#if USE_TRANSIENT_HEAP /* USE_TRANSIENT_HEAP */
/*
* 1: enable assertions
* 2: enable verify all transient heaps
@@ -854,3 +855,4 @@ rb_transient_heap_finish_marking(void)
transient_heap_verify(theap);
}
+#endif /* USE_TRANSIENT_HEAP */