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

Issue 10665036: Cache Nacl Plugin private interface instead of calling GetnaclInterface on every process launch (Closed)

Created:
8 years, 5 months ago by Derek Schuff
Modified:
8 years, 5 months ago
CC:
chromium-reviews, native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Cache Nacl Plugin private interface instead of calling GetnaclInterface on every process launch This fixes nacl subprocess creation off the main thread for LoadHelperNaClModule (used by pnacl coordinator). GetNaclInterface calls GetBrowserInterface, which is required to be called from the main thread. So we call it once and cache the result for calling off the main thread (only for starting nacl helper processes). R=dmichael@chromium.org,jvoung@chromium.org BUG=(broken nacl/chrome integration bots) TEST=nacl_integration Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=144083

Patch Set 1 #

Total comments: 4

Patch Set 2 : review comments #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -4 lines) Patch
M ppapi/native_client/src/trusted/plugin/plugin.h View 2 chunks +3 lines, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.cc View 1 3 chunks +6 lines, -4 lines 4 comments Download

Messages

Total messages: 9 (0 generated)
Derek Schuff
8 years, 5 months ago (2012-06-25 22:19:37 UTC) #1
dmichael (off chromium)
https://chromiumcodereview.appspot.com/10665036/diff/1/ppapi/native_client/src/trusted/plugin/plugin.cc File ppapi/native_client/src/trusted/plugin/plugin.cc (right): https://chromiumcodereview.appspot.com/10665036/diff/1/ppapi/native_client/src/trusted/plugin/plugin.cc#newcode868 ppapi/native_client/src/trusted/plugin/plugin.cc:868: nacl_interface_ = GetNaclInterface(); Since you're in the neighborhood, could ...
8 years, 5 months ago (2012-06-25 22:24:18 UTC) #2
Derek Schuff
https://chromiumcodereview.appspot.com/10665036/diff/1/ppapi/native_client/src/trusted/plugin/plugin.cc File ppapi/native_client/src/trusted/plugin/plugin.cc (right): https://chromiumcodereview.appspot.com/10665036/diff/1/ppapi/native_client/src/trusted/plugin/plugin.cc#newcode868 ppapi/native_client/src/trusted/plugin/plugin.cc:868: nacl_interface_ = GetNaclInterface(); On 2012/06/25 22:24:18, dmichael wrote: > ...
8 years, 5 months ago (2012-06-25 22:33:10 UTC) #3
jvoung (off chromium)
https://chromiumcodereview.appspot.com/10665036/diff/1003/ppapi/native_client/src/trusted/plugin/plugin.cc File ppapi/native_client/src/trusted/plugin/plugin.cc (right): https://chromiumcodereview.appspot.com/10665036/diff/1003/ppapi/native_client/src/trusted/plugin/plugin.cc#newcode125 ppapi/native_client/src/trusted/plugin/plugin.cc:125: const PPB_NaCl_Private* GetNaClInterface() { Is there really a reason ...
8 years, 5 months ago (2012-06-25 22:42:29 UTC) #4
dmichael (off chromium)
lgtm https://chromiumcodereview.appspot.com/10665036/diff/1003/ppapi/native_client/src/trusted/plugin/plugin.cc File ppapi/native_client/src/trusted/plugin/plugin.cc (right): https://chromiumcodereview.appspot.com/10665036/diff/1003/ppapi/native_client/src/trusted/plugin/plugin.cc#newcode899 ppapi/native_client/src/trusted/plugin/plugin.cc:899: CHECK(nacl_interface_ != NULL); nit: In chromium, I'm used ...
8 years, 5 months ago (2012-06-25 22:42:34 UTC) #5
Derek Schuff
https://chromiumcodereview.appspot.com/10665036/diff/1003/ppapi/native_client/src/trusted/plugin/plugin.cc File ppapi/native_client/src/trusted/plugin/plugin.cc (right): https://chromiumcodereview.appspot.com/10665036/diff/1003/ppapi/native_client/src/trusted/plugin/plugin.cc#newcode125 ppapi/native_client/src/trusted/plugin/plugin.cc:125: const PPB_NaCl_Private* GetNaClInterface() { I don't know if it's ...
8 years, 5 months ago (2012-06-25 22:49:07 UTC) #6
jvoung (off chromium)
lgtm
8 years, 5 months ago (2012-06-25 22:50:28 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dschuff@chromium.org/10665036/1003
8 years, 5 months ago (2012-06-25 23:09:56 UTC) #8
commit-bot: I haz the power
8 years, 5 months ago (2012-06-26 01:01:51 UTC) #9
Change committed as 144083

Powered by Google App Engine
This is Rietveld 408576698