Update of /cvsroot/monetdb/MonetDB/src/common
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv2814/src/common

Modified Files:
        Makefile.ag 
Added Files:
        valgrind.h 
Log Message:
fixed heap leak (copy/paste htype/ttype problem). It leaked both on 
disk and in (virtual) memory. 

Used valgrind to debug GDKmmap/GDKmunmap leaks. This requires an include
file from valgrind (license wise okay). The extra calls are only done with 
NDEBUG not set (ie with disable-assert).

added lots of asserts for this.


--- NEW FILE: valgrind.h ---
/* -*- c -*-
   ----------------------------------------------------------------

   Notice that the following BSD-style license applies to this one
   file (valgrind.h) only.  The rest of Valgrind is licensed under the
   terms of the GNU General Public License, version 2, unless
   otherwise indicated.  See the COPYING file in the source
   distribution for details.

   ----------------------------------------------------------------

   This file is part of Valgrind, a dynamic binary instrumentation
   framework.

   Copyright (C) 2000-2006 Julian Seward.  All rights reserved.

   Redistribution and use in source and binary forms, with or without
   modification, are permitted provided that the following conditions
   are met:
[...2500 lines suppressed...]
    VALGRIND_DO_CLIENT_REQUEST(_qzz_res, 0,                       \
                               VG_USERREQ__STACK_DEREGISTER,      \
                               id, 0, 0, 0, 0);                   \
   }

/* Change the start and end address of the stack id. */
#define VALGRIND_STACK_CHANGE(id, start, end)                     \
   {unsigned int _qzz_res;                                        \
    VALGRIND_DO_CLIENT_REQUEST(_qzz_res, 0,                       \
                               VG_USERREQ__STACK_CHANGE,          \
                               id, start, end, 0, 0);             \
   }


#undef ARCH_x86
#undef ARCH_amd64
#undef ARCH_ppc32
#undef ARCH_ppc64

#endif   /* __VALGRIND_H */

Index: Makefile.ag
===================================================================
RCS file: /cvsroot/monetdb/MonetDB/src/common/Makefile.ag,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- Makefile.ag 11 Jan 2008 10:36:59 -0000      1.31
+++ Makefile.ag 13 Jan 2008 13:45:46 -0000      1.32
@@ -18,7 +18,7 @@
 
 MTSAFE
 
-EXTRA_DIST = monet_getopt.h getopt.c getopt1.c memcmp.c stream_socket.h
+EXTRA_DIST = monet_getopt.h getopt.c getopt1.c memcmp.c stream_socket.h 
valgrind.h
 
 lib_mutils = { 
        NAME = mutils


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to