зеркало из https://github.com/github/ruby.git
* gc.c (garbage_collect_with_gvl): do not garbage_collect when
dont_gc flag turned on. [ruby-core:26327] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
435f18f513
Коммит
33c5abbefa
|
@ -1,3 +1,8 @@
|
|||
Tue Oct 27 07:53:25 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* gc.c (garbage_collect_with_gvl): do not garbage_collect when
|
||||
dont_gc flag turned on. [ruby-core:26327]
|
||||
|
||||
Tue Oct 27 07:38:39 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* ext/tk/tcltklib.c,stubs.c: remove errors or warnings when compiled
|
||||
|
|
1
gc.c
1
gc.c
|
@ -618,6 +618,7 @@ gc_with_gvl(void *ptr)
|
|||
static int
|
||||
garbage_collect_with_gvl(rb_objspace_t *objspace)
|
||||
{
|
||||
if (dont_gc) return TRUE;
|
||||
if (ruby_thread_has_gvl_p()) {
|
||||
return garbage_collect(objspace);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче