diff options
author | Robert Sesek <rsesek@google.com> | 2016-11-03 15:00:53 -0400 |
---|---|---|
committer | Robert Sesek <rsesek@google.com> | 2016-11-04 16:57:20 -0400 |
commit | e462117087b5fa34ec6c1ca22c84b2a34b9ab95c (patch) | |
tree | 96e177dcdd36a2cc1874481819da3abee2829200 /libc/malloc_debug/malloc_debug.cpp | |
parent | 42eb0b255507ca4d3b4e94b7756c15ab742261c0 (diff) |
Set __get_thread()->tid as part of clone().
This was previously done only in fork() and pthread_create(), but this left raw
clone() with an invalid cached tid. Since the tid is used for pthread routines,
this led to unstable behavior after clone().
Test: ltp clone01 (see bug for more)
Test: mmma bionic/tests
Test: bionic-unit-tests-static --gtest_filter=*fork*:*clone*
Bug: 32612735
Bug: 32305649
Change-Id: I30eae5a8024b4c5da65476fcadfe14c6db35bb79
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions