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

Issue 2028833003: Exit immediately on failure to allocate SharedMemory. (Closed)

Created:
4 years, 6 months ago by erikchen
Modified:
4 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Exit immediately on failure to allocate SharedMemory. Callers of ChildSharedBitmapManager::AllocateSharedMemoryBitmap are not prepared to handle failures. The existence of the FastShutdown path means that any message might fail. Either all callers of ChildSharedBitmapManager::AllocateSharedMemoryBitmap need to handle failure, or else the process needs to exit immediately. The latter seems more manageable. BUG=615121 Committed: https://crrev.com/7eb3f7fe5233455626980c3517f7fa189e6c9675 Cr-Commit-Position: refs/heads/master@{#397496}

Patch Set 1 #

Patch Set 2 : Compile error. #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : Comments from avi. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -5 lines) Patch
M content/child/child_shared_bitmap_manager.cc View 1 2 3 2 chunks +13 lines, -5 lines 0 comments Download

Messages

Total messages: 35 (15 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2028833003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2028833003/1
4 years, 6 months ago (2016-05-31 21:08:08 UTC) #3
erikchen
danakj: Please review.
4 years, 6 months ago (2016-05-31 21:08:48 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/222135)
4 years, 6 months ago (2016-05-31 21:54:33 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2028833003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2028833003/20001
4 years, 6 months ago (2016-05-31 22:12:04 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-05-31 23:47:56 UTC) #11
erikchen
piman: Please review. We can suppress the crashes if you want with this CL - ...
4 years, 6 months ago (2016-06-01 17:00:44 UTC) #13
erikchen
On 2016/06/01 17:00:44, erikchen wrote: > piman: Please review. > > We can suppress the ...
4 years, 6 months ago (2016-06-01 19:54:06 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2028833003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2028833003/40001
4 years, 6 months ago (2016-06-01 19:54:20 UTC) #18
erikchen
+avi I think piman@ is at an offsite today. anantha@ wants a fix in by ...
4 years, 6 months ago (2016-06-01 21:03:10 UTC) #20
Avi (use Gerrit)
I really don't like EXIT_SUCCESS. https://codereview.chromium.org/2028833003/diff/40001/content/child/child_shared_bitmap_manager.cc File content/child/child_shared_bitmap_manager.cc (right): https://codereview.chromium.org/2028833003/diff/40001/content/child/child_shared_bitmap_manager.cc#newcode117 content/child/child_shared_bitmap_manager.cc:117: exit(EXIT_SUCCESS); /base/process/memory.h's TerminateBecauseOutOfMemory() ?
4 years, 6 months ago (2016-06-01 21:07:38 UTC) #21
erikchen
https://codereview.chromium.org/2028833003/diff/40001/content/child/child_shared_bitmap_manager.cc File content/child/child_shared_bitmap_manager.cc (right): https://codereview.chromium.org/2028833003/diff/40001/content/child/child_shared_bitmap_manager.cc#newcode117 content/child/child_shared_bitmap_manager.cc:117: exit(EXIT_SUCCESS); On 2016/06/01 21:07:38, Avi wrote: > /base/process/memory.h's TerminateBecauseOutOfMemory() ...
4 years, 6 months ago (2016-06-01 21:10:47 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-01 21:23:22 UTC) #24
erikchen
On 2016/06/01 21:23:22, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
4 years, 6 months ago (2016-06-02 16:42:57 UTC) #25
Avi (use Gerrit)
Can we at least comment why it's EXIT_SUCCESS rather than some other value? LGTM
4 years, 6 months ago (2016-06-02 18:05:13 UTC) #26
erikchen
On 2016/06/02 18:05:13, Avi wrote: > Can we at least comment why it's EXIT_SUCCESS rather ...
4 years, 6 months ago (2016-06-02 18:17:16 UTC) #27
erikchen
On 2016/06/02 18:05:13, Avi wrote: > Can we at least comment why it's EXIT_SUCCESS rather ...
4 years, 6 months ago (2016-06-02 18:17:24 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2028833003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2028833003/60001
4 years, 6 months ago (2016-06-02 18:18:13 UTC) #31
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-02 20:13:41 UTC) #32
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/7eb3f7fe5233455626980c3517f7fa189e6c9675 Cr-Commit-Position: refs/heads/master@{#397496}
4 years, 6 months ago (2016-06-02 20:16:05 UTC) #34
piman
4 years, 6 months ago (2016-06-02 23:25:58 UTC) #35
Message was sent while issue was closed.
belated lgtm.

Powered by Google App Engine
This is Rietveld 408576698