summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-30 12:53:35 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-30 12:53:35 +0000
commit8c1c1500234d67b20dcc0a0a102978521ee67b1d (patch)
treea40eeb9d81b8dfdab74d2bf075499ae79f85510b
parentcae4321112270231e3a4aa8c53c07df194a67dc8 (diff)
merges r25498 from trunk into ruby_1_9_1.
-- * 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/branches/ruby_1_9_1@26507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--gc.c1
-rw-r--r--version.h2
3 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c1043fac8f..b74b6884a8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 05:56:39 2009 NARUSE, Yui <naruse@ruby-lang.org>
* vm.c (invoke_block_from_c): return Qnil when its iseq is
diff --git a/gc.c b/gc.c
index bcdc9af0bc..26b01345ed 100644
--- a/gc.c
+++ b/gc.c
@@ -589,6 +589,7 @@ gc_with_gvl(void *ptr)
static int
garbage_collect_with_gvl(rb_objspace_t *objspace)
{
+ if (dont_gc) return Qtrue;
if (ruby_thread_has_gvl_p()) {
return garbage_collect(objspace);
}
diff --git a/version.h b/version.h
index f578844ec7..ba911b3a3a 100644
--- a/version.h
+++ b/version.h
@@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.1"
-#define RUBY_PATCHLEVEL 412
+#define RUBY_PATCHLEVEL 413
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 9
#define RUBY_VERSION_TEENY 1