diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-27 04:20:14 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-27 04:20:14 +0000 |
commit | 3a26241da3aec3d20dfc408a32de1c539455c89b (patch) | |
tree | 7bc3bf3cd94ce85d39bf928d1cae6e3231971cfc | |
parent | 15bfc6ffbfe59ce71ad24d9327b34562b1470bd6 (diff) |
* 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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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); } } |