DescriptionAdded code so renderer would cleanly exit.
This code is only invoked when --renderer-clean-exit is passed to Chrome.
It does the following:
1. Makes the browser process not send a SIGTERM to its children.
2. Makes the renderer process not call _exit() in OnChannelError().
Why is this needed? The renderer process in Chrome does not exit cleanly
currently so when Chrome is profiled for optimization we do not get
representative data and miss out on optimization opportunities.
This CL addresses that problem by ensuring that exit handlers including
profile dumpers get run before the renderer exits.
BUG=107584
TEST=Rebuilt Chrome with -fprofile-generate. Verified that the renderer
process' profile is included when Chrome is closed.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=131625
Patch Set 1 #Patch Set 2 : git try #
Total comments: 1
Patch Set 3 : Added test. #Patch Set 4 : Fixed issue with constructor. #Patch Set 5 : Added chrome_switches.cc to libcontent_browser.a. #
Total comments: 8
Patch Set 6 : Fixed nits. #
Total comments: 10
Patch Set 7 : Addressed comments. #Patch Set 8 : Rebased. #Patch Set 9 : Rebased again. #
Total comments: 4
Patch Set 10 : Fixed indentation. #Patch Set 11 : Rebased again. #Patch Set 12 : Added ifdef around alarm(30). #
Messages
Total messages: 31 (0 generated)
|