121925
From 428791543be9e13af9426970f5796f3157dd30a0 Mon Sep 17 00:00:00 2001
121925
From: nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
121925
Date: Tue, 9 Dec 2014 01:16:27 +0000
121925
Subject: [PATCH] thread.c: get rid of invalid ID symbol
121925
121925
* eval.c (rb_frame_last_func): return the most recent frame method
121925
  name.
121925
* thread.c (recursive_list_access): use the last method name,
121925
  instead of the current method name which can be unset in some
121925
  cases, not to use a symbol by the invalid ID.
121925
  [ruby-core:66742] [Bug #10579]
121925
121925
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
121925
---
121925
 ChangeLog                     | 10 ++++++++++
121925
 eval.c                        | 13 +++++++++++++
121925
 test/ruby/test_objectspace.rb |  7 +++++++
121925
 thread.c                      |  5 ++++-
121925
 4 files changed, 34 insertions(+), 1 deletion(-)
121925
121925
diff --git a/thread.c b/thread.c
121925
index 25cc214..360c6cb 100644
121925
--- a/thread.c
121925
+++ b/thread.c
121925
@@ -4671,6 +4671,8 @@ threadptr_recursive_hash_set(rb_thread_t *th, VALUE hash)
121925
 /* variables for recursive traversals */
121925
 static ID recursive_key;
121925
 
121925
+ID rb_frame_last_func(void);
121925
+
121925
 /*
121925
  * Returns the current "recursive list" used to detect recursion.
121925
  * This list is a hash table, unique for the current thread and for