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

Issue 1222753005: Non-SFI mode: Use clone() instead of pthread_create() (Closed)

Created:
5 years, 5 months ago by Luis Héctor Chávez
Modified:
5 years, 5 months ago
Reviewers:
Mark Seaborn
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/src/native_client.git@master
Target Ref:
refs/heads/master
Project:
nacl
Visibility:
Public.

Description

Non-SFI mode: Use clone() instead of pthread_create() This is a refactor to avoid using pthread_create when creating new threads in non-SFI mode. This is a first step towards implementing asynchronous signals. It also means that we can now use the provided |stack| argument to the |thread_create| IRT call, which should improve memory usage. In ARC, this saves 26MB of virtual memory and 1MB of resident memory. BUG=https://code.google.com/p/nativeclient/issues/detail?id=4065 TEST=git try Committed: https://chromium.googlesource.com/native_client/src/native_client/+/e3168db25bbb64309eca9b9a1d83b86bf8cfb7e4

Patch Set 1 #

Patch Set 2 : Fixed git try failures #

Patch Set 3 : Remove __linux__ #ifdefs #

Patch Set 4 : Fixed compilation errors #

Total comments: 8

Patch Set 5 : Addressed feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -3 lines) Patch
M src/nonsfi/irt/irt_interfaces.c View 1 2 3 3 chunks +22 lines, -0 lines 0 comments Download
A src/nonsfi/linux/linux_pthread_private.h View 1 1 chunk +30 lines, -0 lines 0 comments Download
M src/nonsfi/linux/linux_pthread_private.c View 1 2 3 4 2 chunks +90 lines, -0 lines 0 comments Download
M src/untrusted/pthread/nc_thread.c View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
Luis Héctor Chávez
Please take a look
5 years, 5 months ago (2015-07-06 23:58:46 UTC) #2
Mark Seaborn
https://codereview.chromium.org/1222753005/diff/60001/src/nonsfi/linux/linux_pthread_private.c File src/nonsfi/linux/linux_pthread_private.c (right): https://codereview.chromium.org/1222753005/diff/60001/src/nonsfi/linux/linux_pthread_private.c#newcode91 src/nonsfi/linux/linux_pthread_private.c:91: static void nc_tdb_init(nc_thread_descriptor_t *tdb, Rather than duplicating this from ...
5 years, 5 months ago (2015-07-08 04:11:21 UTC) #3
Luis Héctor Chávez
https://codereview.chromium.org/1222753005/diff/60001/src/nonsfi/linux/linux_pthread_private.c File src/nonsfi/linux/linux_pthread_private.c (right): https://codereview.chromium.org/1222753005/diff/60001/src/nonsfi/linux/linux_pthread_private.c#newcode91 src/nonsfi/linux/linux_pthread_private.c:91: static void nc_tdb_init(nc_thread_descriptor_t *tdb, On 2015/07/08 04:11:21, Mark Seaborn ...
5 years, 5 months ago (2015-07-08 16:42:13 UTC) #4
Mark Seaborn
LGTM, thanks
5 years, 5 months ago (2015-07-08 17:00:01 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1222753005/80001
5 years, 5 months ago (2015-07-08 18:45:10 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: nacl-arm_opt_panda on tryserver.nacl (JOB_FAILED, http://build.chromium.org/p/tryserver.nacl/builders/nacl-arm_opt_panda/builds/10086)
5 years, 5 months ago (2015-07-08 21:54:04 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1222753005/80001
5 years, 5 months ago (2015-07-08 21:59:32 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: nacl-arm_opt_panda on tryserver.nacl (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.nacl/builders/nacl-arm_opt_panda/builds/10101)
5 years, 5 months ago (2015-07-09 03:59:52 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1222753005/80001
5 years, 5 months ago (2015-07-09 14:45:06 UTC) #15
commit-bot: I haz the power
5 years, 5 months ago (2015-07-09 14:46:19 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/native_client/src/native_client/+/e3168db25...

Powered by Google App Engine
This is Rietveld 408576698