|
From: Tom H. <th...@cy...> - 2004-10-18 17:34:47
|
CVS commit by thughes:
Make statically initialised read-write locks work.
BUG: 91604
M +1 -1 vg_libpthread.c 1.171
M +6 -0 vg_replace_malloc.c.base 1.7
--- valgrind/coregrind/vg_libpthread.c #1.170:1.171
@@ -3064,5 +3064,5 @@ static vg_rwlock_t* rw_lookup ( pthread_
if (vg_orig->__vg_rw_writer == NULL)
- rwl = rw_new (orig);
+ rwl = rw_new ((pthread_rwlock_t*)orig);
else if (((Addr)vg_orig->__vg_rw_writer ^ RWLOCK_CHECK_MAGIC) == (Addr)vg_orig->__vg_rw_read_waiting)
rwl = vg_orig->__vg_rw_writer;
--- valgrind/coregrind/vg_replace_malloc.c.base #1.6:1.7
@@ -58,4 +58,10 @@
__attribute__((alias(VG_INTERCEPT_ALIAS(soname:libc.so.6, ##name)), \
visibility("protected"))); \
+ ret VG_INTERCEPT(soname:libstdc++*, __##name##_internal) args \
+ __attribute__((alias(VG_INTERCEPT_ALIAS(soname:libc.so.6, ##name)), \
+ visibility("protected"))); \
+ ret VG_INTERCEPT(soname:libc.so.6, __##name##_internal) args \
+ __attribute__((alias(VG_INTERCEPT_ALIAS(soname:libc.so.6, ##name)), \
+ visibility("protected"))); \
ret VG_INTERCEPT(soname:libstdc++*, ##name) args \
__attribute__((alias(VG_INTERCEPT_ALIAS(soname:libc.so.6, ##name)), \
|