Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Issue 2474703003: Test cached PID using getpid instead of pthread_getattr_np. (Closed)

Created:
4 years, 1 month ago by rickyz (no longer on Chrome)
Modified:
4 years ago
Reviewers:
Robert Sesek
CC:
chromium-reviews, jln+watch_chromium.org, rickyz+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Test 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -1 line) Patch
M WATCHLISTS View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 15 (7 generated)
rickyz (no longer on Chrome)
Mind taking a quick look at this test change? (Random background: DropFilesystemAccess no longer has ...
4 years, 1 month ago (2016-11-02 17:37:53 UTC) #4
Robert Sesek
LGTM. This seems like a saner way to test it (testing the actual result rather ...
4 years, 1 month ago (2016-11-02 19:00:54 UTC) #7
rickyz (no longer on Chrome)
Thanks!
4 years, 1 month ago (2016-11-02 19:35:56 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2474703003/1
4 years, 1 month ago (2016-11-02 19:36:54 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-02 19:44:04 UTC) #11
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/0473e4c06b11eaeb02301cdee5e2d466c5ed8055 Cr-Commit-Position: refs/heads/master@{#429369}
4 years, 1 month ago (2016-11-02 19:55:29 UTC) #13
rickyz (no longer on Chrome)
Oops sorry, ignore the last patchset, uploaded a change from the wrong branch.
4 years ago (2016-11-28 23:55:00 UTC) #14
rickyz (no longer on Chrome)
4 years ago (2016-11-28 23:55:01 UTC) #15
Message was sent while issue was closed.
Oops sorry, ignore the last patchset, uploaded a change from the wrong branch.

Powered by Google App Engine
This is Rietveld 408576698