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

Issue 10843009: Better handling of surfaway/reload in PNaCl translation (Closed)

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

Description

Better handling of surfaway/reload in PNaCl translation On surfaway when the Plugin object gets destroyed, the coordinator joins the translation thread, which could be waiting for an SRPC to return. But the compiler or linker could be blocked (or about to block) on a reverse service call, which could cause a deadlock. So, the reverse service interface for the translator or linker needs to be shut down as well which will cause the nexe's RPC to fail and break the deadlock. Also, join the translation thread in the streaming translation object where it was created to make sure the objects it needs are live. R=jvoung@chromium.org,sehr@chromium.org,robertm@chromium.org BUG=http://code.google.com/p/nativeclient/issues/detail?id=2195 TEST=nacl_integration Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149300

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -10 lines) Patch
M ppapi/native_client/src/trusted/plugin/pnacl_streaming_translate_thread.cc View 4 chunks +12 lines, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.h View 1 2 4 chunks +14 lines, -2 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc View 1 5 chunks +20 lines, -7 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Derek Schuff
PTAL. These 2 classes can probably be integrated, or at least better organized now that ...
8 years, 4 months ago (2012-07-31 16:54:33 UTC) #1
robertm
As you said the code might benefit from some more refactoring. The code is far ...
8 years, 4 months ago (2012-07-31 17:22:18 UTC) #2
Derek Schuff
https://chromiumcodereview.appspot.com/10843009/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://chromiumcodereview.appspot.com/10843009/diff/1/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc#newcode133 ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc:133: void PnaclTranslateThread::SetSubprocessesShouldDie() { The desired effect is to cause ...
8 years, 4 months ago (2012-07-31 17:41:27 UTC) #3
jvoung (off chromium)
http://codereview.chromium.org/10843009/diff/5/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc File ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc (right): http://codereview.chromium.org/10843009/diff/5/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc#newcode138 ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc:138: current_rev_interface_->ShutDown(); I assume that this works better than shutting ...
8 years, 4 months ago (2012-07-31 18:51:45 UTC) #4
Derek Schuff
http://codereview.chromium.org/10843009/diff/5/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc File ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc (right): http://codereview.chromium.org/10843009/diff/5/ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc#newcode138 ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc:138: current_rev_interface_->ShutDown(); Well, this was simpler than trying to own ...
8 years, 4 months ago (2012-07-31 18:57:50 UTC) #5
jvoung (off chromium)
lgtm
8 years, 4 months ago (2012-07-31 20:42:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dschuff@chromium.org/10843009/7002
8 years, 4 months ago (2012-07-31 20:48:31 UTC) #7
commit-bot: I haz the power
8 years, 4 months ago (2012-07-31 22:39:19 UTC) #8
Change committed as 149300

Powered by Google App Engine
This is Rietveld 408576698