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

Issue 14238013: Set up NaClChromeMainArgs number_of_cores member so apps can size threadpools appropriately (Closed)

Created:
7 years, 8 months ago by bsy
Modified:
7 years, 8 months ago
CC:
chromium-reviews, native-client-reviews_googlegroups.com, kmixter1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Set up NaClChromeMainArgs number_of_cores member so apps can size threadpools appropriately The outer sandbox on Linux and OSX was preventing sysconf(_SC_NPROCESSORS_ONLN) from succeeding, so that NaCl applications that need the number of threads were getting a bogus value (-1 when using newlib, and 1 when using glibc). TEST= run_sysconf_nprocessors_onln_test BUG=176522 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195190

Patch Set 1 #

Total comments: 6

Patch Set 2 : browsertest version of test #

Patch Set 3 : add comment #

Patch Set 4 : Visual Studio workaround #

Patch Set 5 : more Windows build issues: use _snprintf_s #

Patch Set 6 : changed name of helper #

Total comments: 16

Patch Set 7 : Cr fb. removed errorListener (incomplete port/hackage) #

Patch Set 8 : added corresponding MAYBE_ defns #

Total comments: 2

Patch Set 9 : CR fb #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -68 lines) Patch
M chrome/nacl/nacl_helper_linux.cc View 6 chunks +8 lines, -4 lines 0 comments Download
M chrome/nacl/nacl_listener.h View 1 2 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/nacl/nacl_listener.cc View 1 2 3 4 5 6 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/nacl/nacl_main.cc View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/test/data/nacl/nacl_test_data.gyp View 1 1 chunk +16 lines, -0 lines 0 comments Download
A + chrome/test/data/nacl/sysconf_nprocessors_onln/sysconf_nprocessors_onln_test.cc View 1 2 3 4 5 6 7 8 3 chunks +12 lines, -39 lines 0 comments Download
A + chrome/test/data/nacl/sysconf_nprocessors_onln/sysconf_nprocessors_onln_test.html View 1 2 3 4 5 6 1 chunk +14 lines, -25 lines 0 comments Download
M chrome/test/nacl/nacl_browsertest.cc View 1 2 3 4 5 6 7 4 chunks +39 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
bsy
Please take a look
7 years, 8 months ago (2013-04-16 17:42:35 UTC) #1
jvoung (off chromium)
https://codereview.chromium.org/14238013/diff/1/chrome/nacl/nacl_listener.h File chrome/nacl/nacl_listener.h (right): https://codereview.chromium.org/14238013/diff/1/chrome/nacl/nacl_listener.h#newcode37 chrome/nacl/nacl_listener.h:37: #if defined(OS_LINUX) || defined(OS_MACOSX) Perhaps leave a comment that ...
7 years, 8 months ago (2013-04-16 18:37:38 UTC) #2
bsy
PTAL https://codereview.chromium.org/14238013/diff/1/chrome/nacl/nacl_listener.h File chrome/nacl/nacl_listener.h (right): https://codereview.chromium.org/14238013/diff/1/chrome/nacl/nacl_listener.h#newcode37 chrome/nacl/nacl_listener.h:37: #if defined(OS_LINUX) || defined(OS_MACOSX) On 2013/04/16 18:37:38, jvoung ...
7 years, 8 months ago (2013-04-17 15:05:37 UTC) #3
jvoung (off chromium)
Thanks for porting the test! Looks pretty good. A couple of nits. You might also ...
7 years, 8 months ago (2013-04-17 17:07:18 UTC) #4
bsy
+ncbray please take a look https://codereview.chromium.org/14238013/diff/31001/chrome/nacl/nacl_listener.cc File chrome/nacl/nacl_listener.cc (right): https://codereview.chromium.org/14238013/diff/31001/chrome/nacl/nacl_listener.cc#newcode10 chrome/nacl/nacl_listener.cc:10: #if defined(OS_LINUX) || defined(OS_MACOSX) ...
7 years, 8 months ago (2013-04-17 20:55:21 UTC) #5
Nick Bray (chromium)
LGTM w/ simplification. https://codereview.chromium.org/14238013/diff/34003/chrome/nacl/nacl_main.cc File chrome/nacl/nacl_main.cc (right): https://codereview.chromium.org/14238013/diff/34003/chrome/nacl/nacl_main.cc#newcode37 chrome/nacl/nacl_main.cc:37: int number_of_cores = sysconf(_SC_NPROCESSORS_ONLN); Why not ...
7 years, 8 months ago (2013-04-18 00:24:18 UTC) #6
jvoung (off chromium)
LGTM https://codereview.chromium.org/14238013/diff/31001/chrome/test/data/nacl/sysconf_nprocessors_onln/sysconf_nprocessors_onln_test.cc File chrome/test/data/nacl/sysconf_nprocessors_onln/sysconf_nprocessors_onln_test.cc (left): https://codereview.chromium.org/14238013/diff/31001/chrome/test/data/nacl/sysconf_nprocessors_onln/sysconf_nprocessors_onln_test.cc#oldcode10 chrome/test/data/nacl/sysconf_nprocessors_onln/sysconf_nprocessors_onln_test.cc:10: #include <string> On 2013/04/17 20:55:21, bsy wrote: > ...
7 years, 8 months ago (2013-04-18 01:43:18 UTC) #7
bsy
thx https://codereview.chromium.org/14238013/diff/31001/chrome/test/data/nacl/sysconf_nprocessors_onln/sysconf_nprocessors_onln_test.cc File chrome/test/data/nacl/sysconf_nprocessors_onln/sysconf_nprocessors_onln_test.cc (left): https://codereview.chromium.org/14238013/diff/31001/chrome/test/data/nacl/sysconf_nprocessors_onln/sysconf_nprocessors_onln_test.cc#oldcode10 chrome/test/data/nacl/sysconf_nprocessors_onln/sysconf_nprocessors_onln_test.cc:10: #include <string> you're right. moved to be after ...
7 years, 8 months ago (2013-04-18 03:25:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bsy@google.com/14238013/48001
7 years, 8 months ago (2013-04-18 16:54:13 UTC) #9
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-18 17:53:30 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bsy@google.com/14238013/48001
7 years, 8 months ago (2013-04-18 19:53:33 UTC) #11
commit-bot: I haz the power
7 years, 8 months ago (2013-04-19 14:46:29 UTC) #12
Message was sent while issue was closed.
Change committed as 195190

Powered by Google App Engine
This is Rietveld 408576698