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

Issue 836733006: Fix EnableTerminationOnOutOfMemory for malloc (Closed)

Created:
5 years, 11 months ago by cpu_(ooo_6.6-7.5)
Modified:
5 years, 11 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix EnableTerminationOnOutOfMemory for malloc Currently only crashes on new and new[]. With the change it will also crash when there is no memory for malloc as well. BUG=434397 TEST=none. Committed: https://crrev.com/22d64abdc792516fd0f4895b26ae3a73c85239e0 Cr-Commit-Position: refs/heads/master@{#310320} Committed: https://crrev.com/3e11a840e89d6dce0084fc4631366b88117b5eea Cr-Commit-Position: refs/heads/master@{#313307}

Patch Set 1 #

Patch Set 2 : better fix #

Patch Set 3 : skia piece #

Total comments: 5

Patch Set 4 : use unchecked functions #

Patch Set 5 : IOS is a poop #

Patch Set 6 : fix calloc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -27 lines) Patch
M base/process/memory_win.cc View 1 2 3 3 chunks +12 lines, -6 lines 0 comments Download
M content/app/content_main_runner.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M content/app/startup_helper_win.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M skia/ext/SkMemory_new_handler.cpp View 1 2 3 4 5 2 chunks +6 lines, -18 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
cpu_(ooo_6.6-7.5)
ptal.
5 years, 11 months ago (2015-01-07 03:20:27 UTC) #2
grt (UTC plus 2)
lgtm. does anything need to change in skia/ext/SkMemory_new_handler.cpp? it also diddles the new handler.
5 years, 11 months ago (2015-01-07 15:46:23 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/836733006/1
5 years, 11 months ago (2015-01-07 17:14:32 UTC) #5
cpu_(ooo_6.6-7.5)
nice find. I'll check if that code is hit. This is process wide so it ...
5 years, 11 months ago (2015-01-07 17:15:17 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 11 months ago (2015-01-07 18:06:42 UTC) #7
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/22d64abdc792516fd0f4895b26ae3a73c85239e0 Cr-Commit-Position: refs/heads/master@{#310320}
5 years, 11 months ago (2015-01-07 18:07:44 UTC) #8
Marijn Kruisselbrink
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/833923003/ by mek@chromium.org. ...
5 years, 11 months ago (2015-01-07 18:29:18 UTC) #9
cpu_(ooo_6.6-7.5)
ok, back to this patch, why can't anything be simple anymore in this codebase? grt: ...
5 years, 11 months ago (2015-01-10 05:37:28 UTC) #11
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/836733006/diff/40001/base/process/memory_win.cc File base/process/memory_win.cc (right): https://codereview.chromium.org/836733006/diff/40001/base/process/memory_win.cc#newcode18 base/process/memory_win.cc:18: #pragma warning(disable: 4702) funny story, this only broke the ...
5 years, 11 months ago (2015-01-10 05:39:38 UTC) #12
grt (UTC plus 2)
https://codereview.chromium.org/836733006/diff/40001/skia/ext/SkMemory_new_handler.cpp File skia/ext/SkMemory_new_handler.cpp (left): https://codereview.chromium.org/836733006/diff/40001/skia/ext/SkMemory_new_handler.cpp#oldcode63 skia/ext/SkMemory_new_handler.cpp:63: // This is not really thread safe. It only ...
5 years, 11 months ago (2015-01-12 14:29:14 UTC) #13
cpu_(ooo_6.6-7.5)
victory!! After doing a few painful iterations I can do what grt wants (except on ...
5 years, 11 months ago (2015-01-24 01:59:52 UTC) #15
grt (UTC plus 2)
lgtm. apologies for the delay.
5 years, 11 months ago (2015-01-27 14:56:44 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/836733006/120001
5 years, 11 months ago (2015-01-27 17:23:47 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:120001)
5 years, 11 months ago (2015-01-27 18:14:15 UTC) #19
commit-bot: I haz the power
5 years, 11 months ago (2015-01-27 18:15:04 UTC) #20
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3e11a840e89d6dce0084fc4631366b88117b5eea
Cr-Commit-Position: refs/heads/master@{#313307}

Powered by Google App Engine
This is Rietveld 408576698