mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-11 05:55:48 +00:00
Really fix statically initialised read-write locks this time...
BUG: 91604 git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2796
This commit is contained in:
@@ -3063,7 +3063,7 @@ static vg_rwlock_t* rw_lookup ( pthread_rwlock_t* orig )
|
||||
CONVERT(rwlock, orig, vg_orig);
|
||||
|
||||
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;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user