summaryrefslogtreecommitdiff
path: root/vm_trace.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-19 02:25:40 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-19 02:25:40 +0000
commit056bdfd2e5a208e691cffc405d775ee5939ca3d3 (patch)
treeef530e6ff69bf0a0c1e8a577409d57c3088e44c4 /vm_trace.c
parent526d7af1a7da85cf40bfdb43c2e19d010685d4fc (diff)
downloadbundler-056bdfd2e5a208e691cffc405d775ee5939ca3d3.tar.gz
Revert r38371 and r38384. they didn't solve the issue
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_trace.c')
-rw-r--r--vm_trace.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/vm_trace.c b/vm_trace.c
index 558b6a87ce..861ee0511a 100644
--- a/vm_trace.c
+++ b/vm_trace.c
@@ -244,7 +244,7 @@ clean_hooks(rb_hook_list_t *list)
static int
exec_hooks(rb_thread_t *th, rb_hook_list_t *list, const rb_trace_arg_t *trace_arg, int can_clean_hooks)
{
- volatile int state;
+ int state;
volatile int raised;
if (UNLIKELY(list->need_clean > 0) && can_clean_hooks) {
@@ -275,10 +275,6 @@ exec_hooks(rb_thread_t *th, rb_hook_list_t *list, const rb_trace_arg_t *trace_ar
if (raised) {
rb_threadptr_set_raised(th);
}
- {
- /* maybe rb_thread_t *volatile? */
- rb_thread_t volatile *RB_UNUSED_VAR(tmp) = th;
- }
return state;
}