[Bf-blender-cvs] CVS commit: blender/intern/guardedalloc/intern mallocn.c

Ton Roosendaal ton at blender.org
Sun Aug 21 12:05:50 CEST 2005


ton (Ton Roosendaal) 2005/08/21 12:05:50 CEST

  Modified files:
    blender/intern/guardedalloc/intern mallocn.c 
  
  Log:
  MEM_alloc allocated in units of 8 for 32 bits systems, and units of 4 for
  64 bits systems... weird bug. :)
  It now only does a unit-of-4 check, for all systems. This will work fine,
  since the malloc code will return aligned anyway, and the guarded alloc
  system only stores ints in the headers. Also, the sizeof() call will
  correctly do padding, so there's no risk of allocating too small blocks.
  
  Revision  Changes    Path
  1.8       +4 -10     blender/intern/guardedalloc/intern/mallocn.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/intern/guardedalloc/intern/mallocn.c.diff?r1=1.7&r2=1.8&cvsroot=bf-blender>



More information about the Bf-blender-cvs mailing list