8000 merge revision(s) r45638: [Backport #9518] · github/ruby@916c913 · GitHub
[go: up one dir, main page]

Skip to content

Commit 916c913

Browse files
committed
merge revision(s) r45638: [Backport ruby#9518]
* gc.c (rb_gc_writebarrier): drop special case for big hash/array [Bug ruby#9518] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent d8eba40 commit 916c913

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Mon May 5 01:20:27 2014 Eric Wong <e@80x24.org>
2+
3+
* gc.c (rb_gc_writebarrier): drop special case for big hash/array
4+
[Bug #9518]
5+
16
Mon May 5 01:13:00 2014 Koichi Sasada <ko1@atdot.net>
27

38
* gc.c (gc_before_sweep): cap `malloc_limit' to

gc.c

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4729,20 +4729,9 @@ rb_gc_writebarrier(VALUE a, VALUE b)
47294729
rb_objspace_t *objspace = &rb_objspace;
47304730

47314731
if (!rgengc_remembered(objspace, a)) {
4732-
int type = BUILTIN_TYPE(a);
4733-
/* TODO: 2 << 16 is just a magic number. */
4734-
if ((type == T_ARRAY && RARRAY_LEN(a) >= 2 << 16) ||
4735-
(type == T_HASH && RHASH_SIZE(a) >= 2 << 16)) {
4736-
if (!rgengc_remembered(objspace, b)) {
4737-
rgengc_report(2, objspace, "rb_gc_wb: %p (%s) -> %p (%s)\n", (void *)a, obj_type_name(a), (void *)b, obj_type_name(b));
4738-
rgengc_remember(objspace, b);
4739-
}
4740-
}
4741-
else {
4742-
rgengc_report(2, objspace, "rb_gc_wb: %p (%s) -> %p (%s)\n",
4743-
(void *)a, obj_type_name(a), (void *)b, obj_type_name(b));
4744-
rgengc_remember(objspace, a);
4745-
}
4732+
rgengc_report(2, objspace, "rb_gc_wb: %p (%s) -> %p (%s)\n",
4733+
(void *)a, obj_type_name(a), (void *)b, obj_type_name(b));
4734+
rgengc_remember(objspace, a);
47464735
}
47474736
}
47484737
}

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define RUBY_VERSION "2.1.2"
22
#define RUBY_RELEASE_DATE "2014-05-05"
3-
#define RUBY_PATCHLEVEL 88
3+
#define RUBY_PATCHLEVEL 89
44

55
#define RUBY_RELEASE_YEAR 2014
66
#define RUBY_RELEASE_MONTH 5

0 commit comments

Comments
 (0)
0