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

Issue 10417026: PPAPI/NaCl: Fix IPC proxy build; pthread_t changed (Closed)

Created:
8 years, 7 months ago by dmichael (off chromium)
Modified:
8 years, 7 months ago
Reviewers:
Mark Seaborn, bbudge, brettw
CC:
chromium-reviews, erikwright (departed), brettw-cc_chromium.org
Visibility:
Public.

Description

PPAPI/NaCl: Fix IPC proxy build; pthread_t changed We broke when NaCl DEPS were rolled, giving us this change: r8650: (mseaborn) libpthread: Make pthread_t a pointer instead of a small integer ID BUG=116317 TEST= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=138261

Patch Set 1 #

Total comments: 1

Patch Set 2 : review comment #

Patch Set 3 : rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M base/threading/platform_thread_posix.cc View 1 1 chunk +4 lines, -1 line 2 comments Download

Messages

Total messages: 12 (0 generated)
dmichael (off chromium)
8 years, 7 months ago (2012-05-22 01:09:32 UTC) #1
bbudge
lgtm I ran into the platform_thread_posix issue too!
8 years, 7 months ago (2012-05-22 01:45:33 UTC) #2
bbudge
http://codereview.chromium.org/10417026/diff/1/base/threading/platform_thread_posix.cc File base/threading/platform_thread_posix.cc (right): http://codereview.chromium.org/10417026/diff/1/base/threading/platform_thread_posix.cc#newcode166 base/threading/platform_thread_posix.cc:166: return reinterpret_cast<int64>(pthread_self()); Maybe it would be better to cast ...
8 years, 7 months ago (2012-05-22 01:58:14 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmichael@chromium.org/10417026/1
8 years, 7 months ago (2012-05-22 01:59:34 UTC) #4
commit-bot: I haz the power
Failed to apply patch for build/all.gyp: While running patch -p1 --forward --force; patching file build/all.gyp ...
8 years, 7 months ago (2012-05-22 01:59:40 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmichael@chromium.org/10417026/8001
8 years, 7 months ago (2012-05-22 02:12:17 UTC) #6
commit-bot: I haz the power
Presubmit check for 10417026-8001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 7 months ago (2012-05-22 02:12:20 UTC) #7
dmichael (off chromium)
+brettw for OWNERS approval
8 years, 7 months ago (2012-05-22 03:03:55 UTC) #8
brettw
lgtm
8 years, 7 months ago (2012-05-22 03:59:28 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmichael@chromium.org/10417026/8001
8 years, 7 months ago (2012-05-22 04:44:40 UTC) #10
commit-bot: I haz the power
Try job failure for 10417026-8001 (retry) (retry) on win_rel for steps "base_unittests, sync_unit_tests" (clobber build). ...
8 years, 7 months ago (2012-05-22 10:27:37 UTC) #11
Mark Seaborn
8 years, 7 months ago (2012-05-22 16:39:39 UTC) #12
https://chromiumcodereview.appspot.com/10417026/diff/8001/base/threading/plat...
File base/threading/platform_thread_posix.cc (right):

https://chromiumcodereview.appspot.com/10417026/diff/8001/base/threading/plat...
base/threading/platform_thread_posix.cc:166: // Pointers are 32-bits in NaCl.
You might also comment that we're assuming nacl-newlib's pthread implementation.
 NaCl itself does not specify that pthread_t is a pointer.

https://chromiumcodereview.appspot.com/10417026/diff/8001/base/threading/plat...
base/threading/platform_thread_posix.cc:167: return
reinterpret_cast<int32>(pthread_self());
FYI, this would break again if nacl-newlib's libpthread changed the type back to
int, because an int->int reinterpret_cast is rejected by some compilers.  A
C-style cast would avoid that problem.

Powered by Google App Engine
This is Rietveld 408576698