summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-29 01:29:22 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-29 01:29:22 +0000
commite4ba4b79b657f784ab52a339958c1ebb2320e906 (patch)
tree30381c9bb0234d86216ef189ebc6130e05685ca1
parent85c1d5d41d8c6d045fb74f3ee09f59d80175c614 (diff)
* vm_method.c (rb_clear_cache_by_class): Revert r29673. It made
a segmentation fault regression. [Bug #4289][ruby-core:34554]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--vm_method.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 4098c46..f87f219 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Apr 29 10:25:31 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+
+ * vm_method.c (rb_clear_cache_by_class): Revert r29673. It made
+ a segmentation fault regression. [Bug #4289][ruby-core:34554].
+
Fri Apr 29 10:24:51 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (make_writeconv): do not add textmode newline decorator if any
diff --git a/vm_method.c b/vm_method.c
index 278941a..2087371 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -85,9 +85,6 @@ rb_clear_cache_by_class(VALUE klass)
{
struct cache_entry *ent, *end;
- if (RCLASS_M_TBL(klass)->num_entries == 0)
- return;
-
rb_vm_change_state();
if (!ruby_running)