diff --git a/documentation/RELEASE_NOTES.html b/documentation/RELEASE_NOTES.html index 8ae4e76d3..e8fbd540a 100644 --- a/documentation/RELEASE_NOTES.html +++ b/documentation/RELEASE_NOTES.html @@ -20,6 +20,22 @@ --> +
The header valgrind/valgrind.h is now included in, and installed by, Base. +When included this file defines some macros which expand to provide hints +to the Valgrind runtime. +These hints are now added to some free-lists within libCom, including freeListLib, +to allow valgrind to provide more accurate information about potential leaks.
+ +valgrind.h automatically disables itself when included targets unsupported by Valgrind. +It can also explicitly be disabled by defining the macro NVALGRIND. +See src/libCom/Makefile for an example.
+ +As a matter of policy valgrind.h is not, and will not be, included by any header file installed by +Base, and will remain an internal implementation detail. +Support modules which choose to use valgrind.h are advised to avoid to do likewise.
+dbLock.c is re-written with an expanded API, and the removal of global mutex locks.
diff --git a/src/libCom/Makefile b/src/libCom/Makefile index 696b1cf98..43aef2d46 100644 --- a/src/libCom/Makefile +++ b/src/libCom/Makefile @@ -9,7 +9,8 @@ TOP = ../.. include $(TOP)/configure/CONFIG -USR_CFLAGS += -DUSE_VALGRIND +# Uncomment this to remove the (benign) valgrind helper stubs +#USR_CFLAGS += -DNVALGRIND SRC = $(TOP)/src LIBCOM = $(SRC)/libCom