From: Yusuke Endoh Date: 2012-11-09T12:40:51+09:00 Subject: [ruby-core:49128] Re: ID_ALLOCATOR ? Hello Roger, 2012/11/9, Roger Pack : > Anyway, I used to use this code in the ruby-prof gem to see a method is the > allocator: > > if (method_id == ID_ALLOCATOR) > > result = rb_str_new2("allocate"); > > > This fails to compile with 2.0 however: > > rp_method.c:101: error: �ID_ALLOCATOR� undeclared (first use in this > function) It looks deleted at r36925, for a refactoring (?) of #6993. It is easy to add the macro ID_ALLOCATOR, but the commit may affect ruby-prof in more essential way. For example, set_trace_func does not hook a call to #allocate method. (Note that I could be wrong; I just read #6993 and I don't read that commit itself.) Is this a matter for ruby-prof? Anyway I'll reopen #6993 and ask ko1 and nobu. Thank you, -- Yusuke Endoh