
29 May
2008
29 May
'08
6:44 p.m.
On Thu, May 29, 2008 at 11:31:28AM -0500, Kumar Gala wrote:
#define bin_at(i) ((mbinptr)((char*)&(av_[2*(i) + 2]) - 2*SIZE_SZ)) #define next_bin(b) ((mbinptr)((char*)(b) + 2 * sizeof(mbinptr))) #define prev_bin(b) ((mbinptr)((char*)(b) - 2 * sizeof(mbinptr))) ..
#define top (bin_at(0)->fd) /* The topmost chunk */ #define last_remainder (bin_at(1)) /* remainder from last split */
but I can't seem to do anything to bin_at() to make them stop. Was wondering if anyone had any suggestions.
We could compile that file with -fno-strict-aliasing, which is probably warranted anyway for the kind of pointer manipulation that malloc needs to do.
-Scott