From 52ae14f4f4f788947c3b5ec3b7b2892b50499690 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 25 Nov 2009 14:17:39 -0800 Subject: More valgrind integration. Vector objects keep displaced pointers to vector data; they point to element 0 which is actually the third element of the vector. If an object is only referenced by interior pointers, Valgrind reports it as possibly leaked. This change conditionally adds a pointer to the true start of the vector, if Valgrind support is enabled. --- ChangeLog | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 12d02a11..2f51b4c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2009-11-25 Kaz Kylheku + + More valgrind integration. Vector objects keep displaced pointers + to vector data; they point to element 0 which is actually the third + element of the vector. If an object is only referenced by interior + pointers, Valgrind reports it as possibly leaked. This change + conditionally adds a pointer to the true start of the vector, + if Valgrind support is enabled. + + * lib.h (struct vec): vec_true_start, new member. + + * lib.c (vector, vec_set_fill): Maintain vec_true_start. + 2009-11-25 Kaz Kylheku First stab at Valgrind integration. First goal: eliminate false -- cgit v1.2.3