summaryrefslogtreecommitdiffhomepage
path: root/src/gc.c
diff options
context:
space:
mode:
authorRory OConnell <[email protected]>2020-09-01 16:13:52 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 18:20:13 +0900
commitfff0f17b490c70e4b99e7118d8c329939a9ebf1f (patch)
treee2fec87e93f922960c77e24559a1055c83362036 /src/gc.c
parent2b05cf48d05e8be79853458e881075b38c1171e3 (diff)
downloadmruby-fff0f17b490c70e4b99e7118d8c329939a9ebf1f.tar.gz
mruby-fff0f17b490c70e4b99e7118d8c329939a9ebf1f.zip
Better malloc_trim define name
Diffstat (limited to 'src/gc.c')
-rw-r--r--src/gc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gc.c b/src/gc.c
index 302d5cd68..3fba68668 100644
--- a/src/gc.c
+++ b/src/gc.c
@@ -6,7 +6,7 @@
#include <string.h>
#include <stdlib.h>
-#ifdef HAS_MALLOC_TRIM
+#ifdef MRB_USE_MALLOC_TRIM
#include <malloc.h>
#endif
#include <mruby.h>
@@ -1322,7 +1322,7 @@ mrb_full_gc(mrb_state *mrb)
gc->full = FALSE;
}
-#ifdef HAS_MALLOC_TRIM
+#ifdef MRB_USE_MALLOC_TRIM
malloc_trim(0);
#endif
GC_TIME_STOP_AND_REPORT;