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

Issue 2130293003: Change OOMs to raise custom exception rather than breakpoint on Windows. (Closed)

Created:
4 years, 5 months ago by Will Harris
Modified:
4 years, 5 months ago
CC:
asvitkine+watch_chromium.org, blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-wtf_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, extensions-reviews_chromium.org, jam, Mikhail, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change OOMs to raise custom exception rather than breakpoint on Windows. This adds the exception reporting for allocators in: - Chromium - Blink (both PartitionAlloc and Oilpan) - Skia - V8 (via call to new API added in crrev.com/2139873002) Magic signature update to crash processor is in go/internal_cl_for_2130293003 BUG=614440 TEST=Visit chrome://memory-exhaust and verify that histogram CrashExitCodes.Renderer has values in bucket 536870904. TEST=Simulate more crashes in Chromium, Blink, V8 and Skia, and verify they all raise exception 0xe0000008. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/8ca194a234f2ec714a46da50b2e10f2b651b9aba Cr-Commit-Position: refs/heads/master@{#406458}

Patch Set 1 #

Patch Set 2 : can't call v8 until v8 patch lands #

Patch Set 3 : remove unused func #

Total comments: 2

Patch Set 4 : skia too #

Patch Set 5 : reeebase #

Patch Set 6 : add oilpan. restore calls to v8. #

Total comments: 2

Patch Set 7 : use VLOG instead of printf #

Total comments: 2

Patch Set 8 : formatting. code review fix. #

Total comments: 3

Patch Set 9 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -57 lines) Patch
M base/process/memory.h View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -0 lines 0 comments Download
M base/process/memory_unittest.cc View 1 2 3 4 5 6 7 3 chunks +37 lines, -29 lines 0 comments Download
M base/process/memory_win.cc View 1 2 3 4 2 chunks +5 lines, -13 lines 0 comments Download
M chrome/browser/extensions/extension_tab_util.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/debug_urls.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/public/common/url_constants.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M content/public/common/url_constants.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -0 lines 0 comments Download
M skia/ext/SkMemory_new_handler.cpp View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp View 1 2 3 4 5 6 7 2 chunks +9 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/heap/PageMemory.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/wtf/Assertions.h View 2 chunks +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/allocator/PartitionAlloc.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/wtf/allocator/Partitions.cpp View 1 chunk +8 lines, -8 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 47 (24 generated)
Will Harris
hi jochen - I wonder what you think about this CL/bug?
4 years, 5 months ago (2016-07-11 17:55:01 UTC) #5
haraken
https://codereview.chromium.org/2130293003/diff/40001/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp File third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp (right): https://codereview.chromium.org/2130293003/diff/40001/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp#newcode98 third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp:98: /* Should this code be commented out?
4 years, 5 months ago (2016-07-11 23:06:36 UTC) #7
Will Harris
https://codereview.chromium.org/2130293003/diff/40001/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp File third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp (right): https://codereview.chromium.org/2130293003/diff/40001/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp#newcode98 third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp:98: /* On 2016/07/11 23:06:35, haraken wrote: > > Should ...
4 years, 5 months ago (2016-07-11 23:11:20 UTC) #8
Will Harris
On 2016/07/11 23:11:20, Will Harris wrote: > https://codereview.chromium.org/2130293003/diff/40001/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp > File third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp (right): > > https://codereview.chromium.org/2130293003/diff/40001/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp#newcode98 ...
4 years, 5 months ago (2016-07-11 23:33:23 UTC) #10
Will Harris
PTAL skia/ext/SkMemory_new_handler.cpp -> mtklein third_party/WebKit/* -> jochen content/* -> jochen tools/metrics/histograms/histograms.xml -> asvitkine base/process/* -> ...
4 years, 5 months ago (2016-07-15 15:41:16 UTC) #16
Alexei Svitkine (slow)
histograms.xml lgtm
4 years, 5 months ago (2016-07-15 15:44:58 UTC) #17
haraken
WebKit LGTM https://codereview.chromium.org/2130293003/diff/100001/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp File third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp (right): https://codereview.chromium.org/2130293003/diff/100001/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp#newcode102 third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp:102: printf("V8 %s OOM: (%s). Current memory usage: ...
4 years, 5 months ago (2016-07-15 16:01:23 UTC) #19
Will Harris
https://codereview.chromium.org/2130293003/diff/100001/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp File third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp (right): https://codereview.chromium.org/2130293003/diff/100001/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp#newcode102 third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp:102: printf("V8 %s OOM: (%s). Current memory usage: %d MB\n", ...
4 years, 5 months ago (2016-07-15 16:11:42 UTC) #20
mtklein_C
lgtm
4 years, 5 months ago (2016-07-15 16:18:05 UTC) #21
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2130293003/diff/120001/chrome/common/url_constants.h File chrome/common/url_constants.h (right): https://codereview.chromium.org/2130293003/diff/120001/chrome/common/url_constants.h#newcode197 chrome/common/url_constants.h:197: extern const char kChromeUIMemoryExhaustHost[]; shouldn't that be defined alongside ...
4 years, 5 months ago (2016-07-18 11:44:34 UTC) #22
Will Harris
PTAL and I have a question about DVLOG or VLOG. https://codereview.chromium.org/2130293003/diff/120001/chrome/common/url_constants.h File chrome/common/url_constants.h (right): https://codereview.chromium.org/2130293003/diff/120001/chrome/common/url_constants.h#newcode197 ...
4 years, 5 months ago (2016-07-18 18:33:56 UTC) #23
haraken
On 2016/07/18 18:33:56, Will Harris wrote: > PTAL and I have a question about DVLOG ...
4 years, 5 months ago (2016-07-18 22:45:38 UTC) #24
jochen (gone - plz use gerrit)
lgtm
4 years, 5 months ago (2016-07-19 12:22:51 UTC) #25
Will Harris
thakis appears to be OOO so base/ -> dcheng. Thanks!
4 years, 5 months ago (2016-07-19 15:59:56 UTC) #27
Will Harris
On 2016/07/19 15:59:56, Will Harris wrote: > thakis appears to be OOO so base/ -> ...
4 years, 5 months ago (2016-07-19 16:53:44 UTC) #28
Mark Mentovai
LGTM otherwise in base. https://codereview.chromium.org/2130293003/diff/140001/base/process/memory.h File base/process/memory.h (right): https://codereview.chromium.org/2130293003/diff/140001/base/process/memory.h#newcode54 base/process/memory.h:54: const DWORD kOomExceptionCode = 0xE0000008; ...
4 years, 5 months ago (2016-07-19 20:32:08 UTC) #31
Will Harris
thanks for reviews. https://codereview.chromium.org/2130293003/diff/140001/base/process/memory.h File base/process/memory.h (right): https://codereview.chromium.org/2130293003/diff/140001/base/process/memory.h#newcode54 base/process/memory.h:54: const DWORD kOomExceptionCode = 0xE0000008; On ...
4 years, 5 months ago (2016-07-19 21:35:33 UTC) #33
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-19 21:36:36 UTC) #36
Mark Mentovai
LGTM in base.
4 years, 5 months ago (2016-07-19 21:36:38 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2130293003/160001
4 years, 5 months ago (2016-07-20 00:33:28 UTC) #42
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 5 months ago (2016-07-20 02:07:10 UTC) #44
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-20 02:07:17 UTC) #45
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 02:10:01 UTC) #47
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/8ca194a234f2ec714a46da50b2e10f2b651b9aba
Cr-Commit-Position: refs/heads/master@{#406458}

Powered by Google App Engine
This is Rietveld 408576698