* vm_trace.c (rb_threadptr_exec_event_hooks, rb_suppress_tracing):
constified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f21d7d9831
commit
811d072dcb
@ -310,7 +310,7 @@ rb_threadptr_exec_event_hooks(rb_thread_t *th, rb_event_flag_t event, VALUE self
|
|||||||
{
|
{
|
||||||
if (th->trace_running == 0 &&
|
if (th->trace_running == 0 &&
|
||||||
self != rb_mRubyVMFrozenCore /* skip special methods. TODO: remove it. */) {
|
self != rb_mRubyVMFrozenCore /* skip special methods. TODO: remove it. */) {
|
||||||
int vm_tracing = th->vm->trace_running;
|
const int vm_tracing = th->vm->trace_running;
|
||||||
int state = 0;
|
int state = 0;
|
||||||
int outer_state = th->state;
|
int outer_state = th->state;
|
||||||
th->state = 0;
|
th->state = 0;
|
||||||
@ -363,8 +363,8 @@ rb_suppress_tracing(VALUE (*func)(VALUE), VALUE arg)
|
|||||||
VALUE result = Qnil;
|
VALUE result = Qnil;
|
||||||
rb_thread_t *th = GET_THREAD();
|
rb_thread_t *th = GET_THREAD();
|
||||||
int state;
|
int state;
|
||||||
int vm_tracing = th->vm->trace_running;
|
const int vm_tracing = th->vm->trace_running;
|
||||||
int tracing = th->trace_running;
|
const int tracing = th->trace_running;
|
||||||
|
|
||||||
th->vm->trace_running = 1;
|
th->vm->trace_running = 1;
|
||||||
th->trace_running = 1;
|
th->trace_running = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user