Update of /cvsroot/monetdb/MonetDB/src/gdk
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21964
Modified Files:
gdk_utils.mx
Log Message:
Round up malloc sizes to multiples of 8 (since we're adding 8
ourselves anyway, that's not a big deal).
This fixes some weird crashes that I can't explain on a 32 bit system.
Index: gdk_utils.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB/src/gdk/gdk_utils.mx,v
retrieving revision 1.183
retrieving revision 1.184
diff -u -d -r1.183 -r1.184
--- gdk_utils.mx 9 May 2007 15:37:58 -0000 1.183
+++ gdk_utils.mx 26 May 2007 14:11:18 -0000 1.184
@@ -1027,7 +1027,7 @@
GDKfatal("GDKmallocmax: called with size " SZFMT "", size);
#endif
}
- size = (size + 3) & ~3; /* round up to a multiple of four */
+ size = (size + 7) & ~7; /* round up to a multiple of eight */
if (size > GDK_mem_bigsize) {
size_t newsize = size + sizeof(size_t) + sizeof(size_t);
size_t newmax = MAX(*maxsize, newsize);
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins