[MacRuby] #1308: MacRuby does not invoke a free function which was specified in Data_Wrap_Struct().

MacRuby ruby-noreply at macosforge.org
Tue Jun 28 18:56:32 PDT 2011


#1308: MacRuby does not invoke a free function which was specified in
Data_Wrap_Struct().
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  blocker               |   Milestone:                       
Component:  MacRuby               |    Keywords:  0.11-blocker         
----------------------------------+-----------------------------------------

Comment(by lsansonetti@…):

 Actually it's even worse:

 {{{
   nokogiriTuplePtr tuple =
 (nokogiriTuplePtr)malloc(sizeof(nokogiriTuple));
   [...]
   tuple->unlinkedNodes = st_init_numtable_with_size(128);
 }}}

 Because this is malloc memory, a write barrier won't suffice.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1308#comment:10>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list