[MacRuby] #1098: assert that all memory allocations actually succeeded

MacRuby ruby-noreply at macosforge.org
Tue Apr 19 21:41:44 PDT 2011


#1098: assert that all memory allocations actually succeeded
-----------------------------------+----------------------------------------
 Reporter:  lsansonetti@…          |       Owner:  lsansonetti@…        
     Type:  defect                 |      Status:  new                  
 Priority:  blocker                |   Milestone:  MacRuby 1.0          
Component:  MacRuby                |    Keywords:                       
-----------------------------------+----------------------------------------

Comment(by lsansonetti@…):

 No, malloc calls should not be replaced by xmalloc, because xmalloc
 returns "collectable" memory (from the libauto malloc zone). What we need
 here is to simply add assert() calls after each malloc() call, to make
 sure it does not return a NULL pointer.

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



More information about the macruby-tickets mailing list