summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-21 10:14:26 +0000
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-21 10:14:26 +0000
commitf21d7d98318919c730a5dbcca9f2c931ebd66898 (patch)
tree0fccea5533fff66247a7d84fa49096e2e8b058a4 /vm_core.h
parent93184600c8dfe84f03d2c41035c5bc0fdbe4e84f (diff)
* vm_core.h (rb_vm_t::trace_running): add a new field
`trace_running' to store vm global tracing status. * vm_trace.c: fix SEGV bug. event_hook was free'd even when the hook is still used in another thread. [ruby-dev:46141] [Bug #7032] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index af87f8a567..5e68b8e9ab 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -343,6 +343,7 @@ typedef struct rb_vm_struct {
int running;
int inhibit_thread_creation;
int thread_abort_on_exception;
+ int trace_running;
volatile int sleeper;
/* object management */