Check whether the big lock is held before invoking pre_thread_ll_create.
authorbart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Sun, 25 Mar 2012 17:51:59 +0000 (17:51 +0000)
committerbart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Sun, 25 Mar 2012 17:51:59 +0000 (17:51 +0000)
commit9a2b80d276717c327e5d3c7dad78625166df7340
treeee9e1b95878bc4ccb304dcad2760659b8d8a798d
parent4e86dd18c75d210c57e6c5def38caefa1ec267a0
Check whether the big lock is held before invoking pre_thread_ll_create.

If the pre_thread_ll_create tracking function would be invoked without the
big lock being held, that would trigger a race condition in the tools that
implement this tracking function.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12458 a5019735-40e9-0310-863c-91ae7b9d1cf9
coregrind/m_scheduler/scheduler.c
coregrind/m_syswrap/syswrap-amd64-linux.c
coregrind/m_syswrap/syswrap-arm-linux.c
coregrind/m_syswrap/syswrap-darwin.c
coregrind/m_syswrap/syswrap-ppc32-linux.c
coregrind/m_syswrap/syswrap-ppc64-linux.c
coregrind/m_syswrap/syswrap-s390x-linux.c
coregrind/m_syswrap/syswrap-x86-linux.c
coregrind/pub_core_scheduler.h