mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Better malloc_trim define name
This commit is contained in:
committed by
Yukihiro "Matz" Matsumoto
parent
2b05cf48d0
commit
fff0f17b49
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user