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

Issue 174073009: [Promise] Avoid crash in stack exhausted circumstance. (Closed)

Created:
6 years, 10 months ago by yhirano
Modified:
6 years, 9 months ago
CC:
blink-reviews, Nils Barth (inactive), kojih, arv+blink, jsbell+bindings_chromium.org, sof, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, Nate Chapin, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

[Promise] Avoid crash in stack exhausted circumstance. Some operations such as createClosure and v8::ObjectTemplate::NewInstance returns an empty handle when the stack is exhausted. Promise should throw a StackOverFlow exception in such a case. BUG=345088 R=haraken Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168306

Patch Set 1 #

Total comments: 4

Patch Set 2 : adding missing empty guards #

Patch Set 3 : Replace RETURN_IF_EMPTY #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : rebase #

Patch Set 8 : Revert the V8Initializer.cpp change: They will be address in another CL. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -27 lines) Patch
M Source/bindings/v8/custom/V8PromiseCustom.cpp View 1 2 3 4 5 18 chunks +46 lines, -27 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
yhirano
6 years, 10 months ago (2014-02-21 03:59:43 UTC) #1
haraken
https://codereview.chromium.org/174073009/diff/1/Source/bindings/v8/V8Initializer.cpp File Source/bindings/v8/V8Initializer.cpp (right): https://codereview.chromium.org/174073009/diff/1/Source/bindings/v8/V8Initializer.cpp#newcode88 Source/bindings/v8/V8Initializer.cpp:88: static const char stackOverFlowMessageString[] = "Uncaught RangeError: Maximum call ...
6 years, 10 months ago (2014-02-21 04:19:20 UTC) #2
yhirano
I'm sorry, there were some missing empty guards at PS1 and I added them at ...
6 years, 10 months ago (2014-02-21 07:32:51 UTC) #3
haraken
(Probably I should have mentioned this before starting reviewing...) I'm not sure if it's a ...
6 years, 10 months ago (2014-02-21 09:34:06 UTC) #4
haraken
+jochen, dan
6 years, 10 months ago (2014-02-21 09:34:50 UTC) #5
yhirano
abarth, jochen, dcarney: PTAL? It is now a stable blocker.
6 years, 10 months ago (2014-02-26 01:14:09 UTC) #6
abarth-chromium
This CL seems a bit hacky (e.g., doing string comparisons to determine what happened in ...
6 years, 10 months ago (2014-02-26 06:34:40 UTC) #7
dcarney
Given that errors can be monkey patched, this is it not a great way to ...
6 years, 10 months ago (2014-02-26 10:01:16 UTC) #8
dcarney
https://codereview.chromium.org/176843003/ gives you an api. Please wait for it as it will change the magic ...
6 years, 10 months ago (2014-02-26 12:08:44 UTC) #9
yhirano
Discussed with dcarney. We decided to separate changes to two CLs. This CL changes V8PromiseCustom ...
6 years, 10 months ago (2014-02-27 08:52:16 UTC) #10
haraken
LGTM
6 years, 10 months ago (2014-02-27 09:08:19 UTC) #11
dcarney
lgtm
6 years, 10 months ago (2014-02-27 09:08:47 UTC) #12
yhirano
The CQ bit was checked by yhirano@chromium.org
6 years, 9 months ago (2014-02-28 17:48:33 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/174073009/170001
6 years, 9 months ago (2014-02-28 17:48:44 UTC) #14
yhirano
The CQ bit was unchecked by yhirano@chromium.org
6 years, 9 months ago (2014-02-28 17:49:26 UTC) #15
yhirano
The CQ bit was checked by yhirano@chromium.org
6 years, 9 months ago (2014-03-03 08:41:22 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/174073009/170001
6 years, 9 months ago (2014-03-03 08:41:33 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-03 11:17:50 UTC) #18
commit-bot: I haz the power
Retried try job too often on win_layout for step(s) webkit_lint http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout&number=24410
6 years, 9 months ago (2014-03-03 11:17:51 UTC) #19
yhirano
The CQ bit was checked by yhirano@chromium.org
6 years, 9 months ago (2014-03-03 12:49:37 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/174073009/170001
6 years, 9 months ago (2014-03-03 12:49:56 UTC) #21
commit-bot: I haz the power
6 years, 9 months ago (2014-03-03 12:52:20 UTC) #22
Message was sent while issue was closed.
Change committed as 168306

Powered by Google App Engine
This is Rietveld 408576698