Implement TracePoint on VWA
This commit is contained in:
parent
8d6175bf64
commit
5672fb63d2
14
vm_trace.c
14
vm_trace.c
@ -779,16 +779,14 @@ tp_mark(void *ptr)
|
|||||||
if (tp->target_th) rb_gc_mark(tp->target_th->self);
|
if (tp->target_th) rb_gc_mark(tp->target_th->self);
|
||||||
}
|
}
|
||||||
|
|
||||||
static size_t
|
|
||||||
tp_memsize(const void *ptr)
|
|
||||||
{
|
|
||||||
return sizeof(rb_tp_t);
|
|
||||||
}
|
|
||||||
|
|
||||||
static const rb_data_type_t tp_data_type = {
|
static const rb_data_type_t tp_data_type = {
|
||||||
"tracepoint",
|
"tracepoint",
|
||||||
{tp_mark, RUBY_TYPED_DEFAULT_FREE, tp_memsize,},
|
{
|
||||||
0, 0, RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED
|
tp_mark,
|
||||||
|
RUBY_TYPED_DEFAULT_FREE,
|
||||||
|
NULL, // Nothing allocated externally, so don't need a memsize function
|
||||||
|
},
|
||||||
|
0, 0, RUBY_TYPED_FREE_IMMEDIATELY | RUBY_TYPED_WB_PROTECTED | RUBY_TYPED_EMBEDDABLE
|
||||||
};
|
};
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user