mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 05:25:34 +02:00
* 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:
parent
e6237c8243
commit
73d6dc252d
2 changed files with 9 additions and 3 deletions
|
@ -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>
|
Fri Dec 6 14:05:19 2013 Aman Gupta <ruby@tmm1.net>
|
||||||
|
|
||||||
* gc.c (gc_start_internal): GC.start() now accepts two optional
|
* 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);
|
garbage_collect(objspace, full_mark, immediate_sweep, GPR_FLAG_METHOD);
|
||||||
if (!finalizing) finalize_deferred(objspace);
|
if (!finalizing) finalize_deferred(objspace);
|
||||||
heap_pages_free_unused_pages(objspace);
|
|
||||||
|
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
@ -5055,9 +5054,8 @@ void
|
||||||
rb_gc(void)
|
rb_gc(void)
|
||||||
{
|
{
|
||||||
rb_objspace_t *objspace = &rb_objspace;
|
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);
|
if (!finalizing) finalize_deferred(objspace);
|
||||||
heap_pages_free_unused_pages(objspace);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue