Skip to content

Commit 3628e9e

Browse files
committed
Remove unused field on Thread struct
It looks like stat_insn_usage was introduced with YARV, but as far as I can tell the field has never been used. I think we should remove the field since we don't use it.
1 parent 0a35c5b commit 3628e9e

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

vm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3498,7 +3498,6 @@ thread_mark(void *ptr)
34983498
if (th->root_fiber) rb_fiber_mark_self(th->root_fiber);
34993499

35003500
RUBY_ASSERT(th->ec == rb_fiberptr_get_ec(th->ec->fiber_ptr));
3501-
rb_gc_mark(th->stat_insn_usage);
35023501
rb_gc_mark(th->last_status);
35033502
rb_gc_mark(th->locking_mutex);
35043503
rb_gc_mark(th->name);

vm_core.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,9 +1167,6 @@ typedef struct rb_thread_struct {
11671167
thread_invoke_type_func
11681168
} invoke_type;
11691169

1170-
/* statistics data for profiler */
1171-
VALUE stat_insn_usage;
1172-
11731170
/* fiber */
11741171
rb_fiber_t *root_fiber;
11751172

0 commit comments

Comments
 (0)