Issue #6993 has been updated by agrimm (Andrew Grimm).


preview2???????????????
(Preview 2 is also bad)

    $ gem install ruby-prof
    Building native extensions.  This could take a while...
    ERROR:  Error installing ruby-prof:
    	ERROR: Failed to build gem native extension.
    
            /Users/agrimm/.rvm/rubies/ruby-head/bin/ruby extconf.rb
    checking for sys/times.h... yes
    checking for rb_os_allocated_objects()... no
    checking for rb_gc_allocated_size()... no
    checking for rb_gc_collections()... no
    checking for rb_gc_time()... no
    checking for rb_class_superclass()... yes
    checking for rb_heap_total_mem()... no
    checking for rb_gc_heap_info()... no
    creating Makefile
    
    make
    compiling rp_call_info.c
    compiling rp_measure.c
    compiling rp_measure_allocations.c
    compiling rp_measure_cpu_time.c
    compiling rp_measure_gc_runs.c
    compiling rp_measure_gc_time.c
    compiling rp_measure_memory.c
    compiling rp_measure_process_time.c
    compiling rp_measure_wall_time.c
    compiling rp_method.c
    rp_method.c: In function ???method_name???:
    rp_method.c:101: error: ???ID_ALLOCATOR??? undeclared (first use in this function)
    rp_method.c:101: error: (Each undeclared identifier is reported only once
    rp_method.c:101: error: for each function it appears in.)
    make: *** [rp_method.o] Error 1
    
    
    Gem files will remain installed in /Users/agrimm/.rvm/gems/ruby-head/gems/ruby-prof-0.11.2 for inspection.
    Results logged to /Users/agrimm/.rvm/gems/ruby-head/gems/ruby-prof-0.11.2/ext/ruby_prof/gem_make.out
    $ ruby --version
    ruby 2.0.0dev (2012-12-12) [x86_64-darwin10.8.0]

Mame-san, were you saying "if it doesn't work on preview2, please re-open the issue"? Apologies for re-opening if I misunderstood you.
----------------------------------------
Feature #6993: Class#allocate ??????????C????????
https://bugs.ruby-lang.org/issues/6993#change-34656

Author: ko1 (Koichi Sasada)
Status: Closed
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: core
Target version: 2.0.0


=begin
?????????????????

???????Class#new ?????????????Class#allocate ?????????????Class#allocate ????次?????????徴?????????????????????????????????????????

* ????????義?????? Class#new ????????使?????????
* ?????????????????? func ??? rb_define_alloc_func(klass, func) ?????????????
* func ??? ID_ALLOCATOR ????????????????????????????????????対???????????????????????????? rb_id2name(ID_ALLOCATOR) ??? NULL ???????
* func ??? rb_funcall(klass, ID_ALLOCATOR, ...) ?????????

?????????????? allocator ????義???????????????????????????置?????????????????????????

??????

* backtrace ?????????
* set_trace_func ????????????????

??????????????????????????????Ruby ???????????????????????????????????????????set_trace_func ????????????????C ??? trace_func ??????????????????????????????中?????端??????????????????

???????????????中??????????議???????????????????????????? allocator function ????????????????rb_funcall?????????????????????????????????????????????????????????????rb_classext_t ??? allocator function ??????????????????????????????????????????????????????????????

???????????????????????allocator function ?????? super ?????????????????話?????????????????????????????????????????奴??????????????????????????????? allocator function ????????????????????????????????????????議???????????????

??次????????????????allocator function ??????????????????????????????????????????????????義??????????????干???????????????????????????????????

????????????????????????????allocator function ??? backtrace ??? set_trace_func ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????話????????????????

?????????????????????????????????中??????????????????????????????????????????????????????????????????????????????????????

=end



-- 
http://bugs.ruby-lang.org/