зеркало из https://github.com/github/ruby.git
* gc.c (gc_start_internal, rb_gc): do not need
heap_pages_free_unused_pages() here. It was done in after_sweep(). * gc.c (rb_gc): The reason is now GPR_FLAG_CAPI. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
e6237c8243
Коммит
73d6dc252d
|
@ -1,3 +1,11 @@
|
|||
Fri Dec 6 15:24:30 2013 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* gc.c (gc_start_internal, rb_gc): do not need
|
||||
heap_pages_free_unused_pages() here.
|
||||
It was done in after_sweep().
|
||||
|
||||
* gc.c (rb_gc): The reason is now GPR_FLAG_CAPI.
|
||||
|
||||
Fri Dec 6 14:05:19 2013 Aman Gupta <ruby@tmm1.net>
|
||||
|
||||
* gc.c (gc_start_internal): GC.start() now accepts two optional
|
||||
|
|
4
gc.c
4
gc.c
|
@ -5039,7 +5039,6 @@ gc_start_internal(int argc, VALUE *argv, VALUE self)
|
|||
|
||||
garbage_collect(objspace, full_mark, immediate_sweep, GPR_FLAG_METHOD);
|
||||
if (!finalizing) finalize_deferred(objspace);
|
||||
heap_pages_free_unused_pages(objspace);
|
||||
|
||||
return Qnil;
|
||||
}
|
||||
|
@ -5055,9 +5054,8 @@ void
|
|||
rb_gc(void)
|
||||
{
|
||||
rb_objspace_t *objspace = &rb_objspace;
|
||||
garbage_collect(objspace, TRUE, TRUE, GPR_FLAG_METHOD);
|
||||
garbage_collect(objspace, TRUE, TRUE, GPR_FLAG_CAPI);
|
||||
if (!finalizing) finalize_deferred(objspace);
|
||||
heap_pages_free_unused_pages(objspace);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Загрузка…
Ссылка в новой задаче