diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | gc.c | 2 |
3 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,11 @@ +Thu Nov 27 13:11:00 2014 Koichi Sasada <ko1@atdot.net> + + * gc.c (objspace_malloc_increase): enable lazy sweep on GC by malloc() + (malloc_increase) to make GC incrementally. + + This change can increase memory consumption. Report us if you find + any problem. + Thu Nov 27 12:46:38 2014 Tanaka Akira <akr@fsij.org> * time.c (time_s_mkutc): [DOC] Time.utc's 10 arguments form @@ -334,6 +334,7 @@ with all sufficient information, see the ChangeLog file. * Most symbols which are returned by String#to_sym and String#intern are GC-able [Feature #9634] * Introduce incremental marking for major GC. [Feature #10137] + * Enable lazy sweep on GC caused by malloc(). * VM * Use frozen string literals for Hash#[] and Hash#[]= @@ -7218,7 +7218,7 @@ objspace_malloc_increase(rb_objspace_t *objspace, void *mem, size_t new_size, si gc_rest(objspace); /* gc_rest can reduce malloc_increase */ goto retry; } - garbage_collect_with_gvl(objspace, FALSE, TRUE, TRUE, GPR_FLAG_MALLOC); + garbage_collect_with_gvl(objspace, FALSE, FALSE, FALSE, GPR_FLAG_MALLOC); } } |