diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-09-08 09:52:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-09-08 09:52:26 +0000 |
commit | 5fbfc21b67f4bd68502e186024636f5bf4350f90 (patch) | |
tree | 3ff79b074c314852173be275c081b16483b1f3ac /vm_trace.c | |
parent | ea005c47faf3563b7fc9a3f92525a05e745df033 (diff) |
internal.h: allocator function in rb_classext_t
* internal.h (struct rb_classext_struct): move allocator function into
rb_classext_t from ordinary method table. [ruby-dev:46121]
[Feature #6993]
* object.c (rb_obj_alloc): call allocator function directly.
* vm_method.c (rb_define_alloc_func, rb_undef_alloc_func)
(rb_get_alloc_func): use allocator function in rb_classext_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_trace.c')
-rw-r--r-- | vm_trace.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/vm_trace.c b/vm_trace.c index 349063e1ec..90c2bd25ff 100644 --- a/vm_trace.c +++ b/vm_trace.c @@ -554,9 +554,6 @@ call_trace_func(rb_event_flag_t event, VALUE proc, VALUE self, ID id, VALUE klas rb_thread_method_id_and_class(th, &id, &klass); } - if (id == ID_ALLOCATOR) - return; - if (klass) { if (RB_TYPE_P(klass, T_ICLASS)) { klass = RBASIC(klass)->klass; @@ -778,10 +775,6 @@ tp_call_trace(VALUE tpval, rb_trace_arg_t *trace_arg) rb_thread_t *th = GET_THREAD(); int state; - if (UNLIKELY(trace_arg->id == ID_ALLOCATOR)) { - return; - } - tp->trace_arg = trace_arg; TH_PUSH_TAG(th); |