summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-04 16:26:30 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-04 16:26:30 +0000
commitcd705d115a8d118cb6b6ab9e0b1c79573973280b (patch)
tree756f4b3a4532f8031e786819ebaf2d7617a8d7a0
parentac0f8d8045fdefd2d9a307cb5c3e8a8398542359 (diff)
merge revision(s) r45638: [Backport #9518]
* gc.c (rb_gc_writebarrier): drop special case for big hash/array [Bug #9518] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--gc.c17
-rw-r--r--version.h2
3 files changed, 9 insertions, 15 deletions
diff --git a/ChangeLog b/ChangeLog
index 89d0b4037c..a8631f7986 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon May 5 01:20:27 2014 Eric Wong <e@80x24.org>
+
+ * gc.c (rb_gc_writebarrier): drop special case for big hash/array
+ [Bug #9518]
+
Mon May 5 01:13:00 2014 Koichi Sasada <ko1@atdot.net>
* gc.c (gc_before_sweep): cap `malloc_limit' to
diff --git a/gc.c b/gc.c
index ebcfd425ce..11b155607b 100644
--- a/gc.c
+++ b/gc.c
@@ -4729,20 +4729,9 @@ rb_gc_writebarrier(VALUE a, VALUE b)
rb_objspace_t *objspace = &rb_objspace;
if (!rgengc_remembered(objspace, a)) {
- int type = BUILTIN_TYPE(a);
- /* TODO: 2 << 16 is just a magic number. */
- if ((type == T_ARRAY && RARRAY_LEN(a) >= 2 << 16) ||
- (type == T_HASH && RHASH_SIZE(a) >= 2 << 16)) {
- if (!rgengc_remembered(objspace, b)) {
- rgengc_report(2, objspace, "rb_gc_wb: %p (%s) -> %p (%s)\n", (void *)a, obj_type_name(a), (void *)b, obj_type_name(b));
- rgengc_remember(objspace, b);
- }
- }
- else {
- rgengc_report(2, objspace, "rb_gc_wb: %p (%s) -> %p (%s)\n",
- (void *)a, obj_type_name(a), (void *)b, obj_type_name(b));
- rgengc_remember(objspace, a);
- }
+ rgengc_report(2, objspace, "rb_gc_wb: %p (%s) -> %p (%s)\n",
+ (void *)a, obj_type_name(a), (void *)b, obj_type_name(b));
+ rgengc_remember(objspace, a);
}
}
}
diff --git a/version.h b/version.h
index 45c012b398..f6c311b4f2 100644
--- a/version.h
+++ b/version.h
@@ -1,6 +1,6 @@
#define RUBY_VERSION "2.1.2"
#define RUBY_RELEASE_DATE "2014-05-05"
-#define RUBY_PATCHLEVEL 88
+#define RUBY_PATCHLEVEL 89
#define RUBY_RELEASE_YEAR 2014
#define RUBY_RELEASE_MONTH 5