|
From: Tom H. <th...@cy...> - 2004-10-18 23:03:28
|
CVS commit by thughes:
Really fix statically initialised read-write locks this time...
BUG: 91604
M +1 -1 vg_libpthread.c 1.172
--- valgrind/coregrind/vg_libpthread.c #1.171:1.172
@@ -3064,5 +3064,5 @@ static vg_rwlock_t* rw_lookup ( pthread_
if (vg_orig->__vg_rw_writer == NULL)
- rwl = rw_new ((pthread_rwlock_t*)orig);
+ rwl = rw_new ((pthread_rwlock_t*)vg_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;
|