Check whether the big lock is held before invoking pre_thread_ll_create.
commit563f0acd21927a4efd9841cc8aa5da7cbaefce62
authorBart Van Assche <bvanassche@acm.org>
Sun, 25 Mar 2012 17:51:59 +0000 (25 17:51 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sun, 25 Mar 2012 17:51:59 +0000 (25 17:51 +0000)
treeee9e1b95878bc4ccb304dcad2760659b8d8a798d
parent57ec7947c7373881eafc04c5ff60c2c675583eed
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
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