DescriptionTest cached PID using getpid instead of pthread_getattr_np.
Previously, we tested that glibc's cached PID was correct by relying on
an assert inside of pthread_getattr_np. This relies on a fairly
implementation-specific detail of pthread_getattr_np and is also
problematic, as glibc's pthread_getattr_np relies on reading
/proc/self/maps when called from the main thread (but the test chroots).
This change inspects the cached PID more directly using getpid instead.
BUG=646191
Committed: https://crrev.com/0473e4c06b11eaeb02301cdee5e2d466c5ed8055
Cr-Commit-Position: refs/heads/master@{#429369}
Patch Set 1 #Patch Set 2 : Remove rickyz from WATCHLISTS. #Messages
Total messages: 15 (7 generated)
|