diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/-test-/tracepoint/tracepoint.c | 4 | ||||
-rw-r--r-- | ext/objspace/object_tracing.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/-test-/tracepoint/tracepoint.c b/ext/-test-/tracepoint/tracepoint.c index 220280c951..8164a633eb 100644 --- a/ext/-test-/tracepoint/tracepoint.c +++ b/ext/-test-/tracepoint/tracepoint.c @@ -19,7 +19,7 @@ tracepoint_track_objspace_events_i(VALUE tpval, void *data) newobj_count++; break; } - case RUBY_INTERNAL_EVENT_FREE: + case RUBY_INTERNAL_EVENT_FREEOBJ: { free_count++; break; @@ -37,7 +37,7 @@ tracepoint_track_objspace_events_i(VALUE tpval, void *data) VALUE tracepoint_track_objspace_events(VALUE self) { - VALUE tpval = rb_tracepoint_new(0, RUBY_INTERNAL_EVENT_NEWOBJ | RUBY_INTERNAL_EVENT_FREE | RUBY_INTERNAL_EVENT_GC_START, tracepoint_track_objspace_events_i, 0); + VALUE tpval = rb_tracepoint_new(0, RUBY_INTERNAL_EVENT_NEWOBJ | RUBY_INTERNAL_EVENT_FREEOBJ | RUBY_INTERNAL_EVENT_GC_START, tracepoint_track_objspace_events_i, 0); VALUE result = rb_ary_new(); int i; diff --git a/ext/objspace/object_tracing.c b/ext/objspace/object_tracing.c index 2dc531c738..3caaa75065 100644 --- a/ext/objspace/object_tracing.c +++ b/ext/objspace/object_tracing.c @@ -125,7 +125,7 @@ trace_object_allocations(VALUE objspace) struct traceobj_arg arg; arg.newobj_trace = rb_tracepoint_new(0, RUBY_INTERNAL_EVENT_NEWOBJ, newobj_i, &arg); - arg.freeobj_trace = rb_tracepoint_new(0, RUBY_INTERNAL_EVENT_FREE, freeobj_i, &arg); + arg.freeobj_trace = rb_tracepoint_new(0, RUBY_INTERNAL_EVENT_FREEOBJ, freeobj_i, &arg); arg.object_table = st_init_numtable(); arg.path_table = st_init_strtable(); |