Hello Roger,

2012/11/9, Roger Pack <rogerdpack2 / gmail.com>:
> Anyway, I used to use this code in the ruby-prof gem to see a method is t=
he
> allocator:
>
> if (method_id =3D=3D ID_ALLOCATOR)
>
>         result =3D rb_str_new2("allocate");
>
>
> This fails to compile with 2.0 however:
>
> rp_method.c:101: error: =91ID_ALLOCATOR=92 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,

--=20
Yusuke Endoh <mame / tsg.ne.jp>