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

* 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:
matz 2009-10-26 23:06:39 +00:00
parent 435f18f513
commit 33c5abbefa
2 changed files with 6 additions and 0 deletions

View file

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

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