1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
ko1 2014-11-27 04:20:14 +00:00
parent 15bfc6ffbf
commit 3a26241da3
3 changed files with 10 additions and 1 deletions

View file

@ -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

1
NEWS
View file

@ -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#[]=

2
gc.c
View file

@ -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);
}
}