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

Issue 308013002: Pepper: Narrow locking at llc subprocess start. (Closed)

Created:
6 years, 6 months ago by teravest
Modified:
6 years, 6 months ago
Reviewers:
bbudge
CC:
chromium-reviews, Mark Seaborn, hidehiko
Visibility:
Public.

Description

Pepper: Narrow locking at llc subprocess start. Currently, subprocess_mu_ is held the entire time the llc subprocess is starting. This blocks a larger refactor that I'd like to make as part of nexe loading. I'd like to change ServiceRuntime::LoadModule() to be asynchronous to simplify threading behavior on the plugin side when loading nexe modules. However, this requires that many methods are made asynchronous, including Plugin::LoadHelperNaClModule(). PnaclTranslateThread will need to use a pattern similar to WaitForSelLdrStart() to resume execution on a background thread. However, I don't like the idea of introducing another mutex and condvar to deal with while holding subprocess_mu_. This change narrows the time that subprocess_mu_ is held to make that refactor possible. I'll make a similar change for the ld subprocess, but I wanted to get this reviewed before proceeding further. BUG=333950 R=bbudge@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273895

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix for bbudge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -18 lines) Patch
M ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc View 1 3 chunks +28 lines, -18 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
teravest
6 years, 6 months ago (2014-05-29 20:41:12 UTC) #1
teravest
-dmichael +bbudge
6 years, 6 months ago (2014-05-30 16:26:45 UTC) #2
bbudge
LGTM https://codereview.chromium.org/308013002/diff/1/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc File ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc (right): https://codereview.chromium.org/308013002/diff/1/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc#newcode178 ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc:178: "NaCl.Perf.PNaClLoadTime.LoadCompiler", nit: indent arguments
6 years, 6 months ago (2014-05-30 17:53:19 UTC) #3
teravest
Thanks! On Fri, May 30, 2014 at 11:53 AM, <bbudge@chromium.org> wrote: > LGTM > > ...
6 years, 6 months ago (2014-05-30 17:55:49 UTC) #4
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 6 months ago (2014-05-30 18:11:21 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/308013002/20001
6 years, 6 months ago (2014-05-30 18:12:44 UTC) #6
teravest
6 years, 6 months ago (2014-05-30 20:00:14 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 manually as r273895 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698