Blender Git Commit Log
Git Commits -> Revision 4d58808
Revision 4d58808 by Ton Roosendaal (master) August 21, 2005, 10:05 (GMT) |
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. |
Commit Details:
Full Hash: 4d58808512d2e92afd1d4822a494a40f5ca916a3
SVN Revision: 5160
Parent Commit: 7804860
Lines Changed: +2, -8
1 Modified Path:
/intern/guardedalloc/intern/mallocn.c (+2, -8) (Diff)