DescriptionNaCl: Send fatal log messages via shared memory.
nacl_helper reports the last few log messages to the renderer when a LOG_FATAL
message is logged in the plugin. This currently uses the "bootstrap" channel,
which we would like to get rid of.
This uses a shared memory segment instead of IPC, since something bad may have
happened in the plugin process, so we'd like to keep the behavior for handling
that case as simple as possible. For that reason, the shared memory segment is
mapped before the nexe is loaded.
I've tested this locally by calling RemoteLog(LOG_FATAL, ...) after StartModule
in ServiceRuntime, though I'd like to find some better way to test this as
there's a decent amount of logic here.
BUG=391039
R=jschuh@chromium.org, mseaborn@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290910
Patch Set 1 #
Total comments: 10
Patch Set 2 : fixes for mseaborn #
Total comments: 20
Patch Set 3 : fixes for mseaborn, round 2 #Patch Set 4 : Fix use of std::min with uint32 and size_t #Patch Set 5 : std::min compile fix on windows #
Total comments: 2
Patch Set 6 : Remove commented out line #
Created: 6 years, 4 months ago
Messages
Total messages: 17 (0 generated)
|