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

Issue 11142013: Add methods to allow resuming execution after calling TerminateExecution(). (Closed)

Created:
8 years, 2 months ago by apaprocki
Modified:
7 years, 8 months ago
Reviewers:
Yang
CC:
v8-dev, danno, Vyacheslav Egorov (Chromium), Sven Panne
Visibility:
Public.

Description

Add methods to allow resuming execution after calling TerminateExecution(). Two new methods are added to allow embedders to determine that execution should be resumed at a particular point in the stack without being forced to unwind all JS frames. * V8::CancelTerminateExecution() -- When execution is terminated via a call to V8::TerminateExecution(), this method can be called to clear the termination exception so that the engine can continue to be used. * TryCatch::HasTerminated() -- When a TryCatch has caught a termination exception, HasTerminated() will return true to indicate it is valid to call V8::ResumeExecution() if desired. A test case is added to cctest/test-thread-termination.cc. BUG=v8:2361 Patch from Andrew Paprocki <andrew@ishiboo.com>;. Committed: https://code.google.com/p/v8/source/detail?r=14022

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -11 lines) Patch
M AUTHORS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M include/v8.h View 1 2 3 4 5 3 chunks +38 lines, -10 lines 0 comments Download
M src/api.cc View 1 2 3 4 3 chunks +13 lines, -1 line 0 comments Download
M src/execution.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/execution.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M src/isolate.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/isolate.cc View 1 2 3 2 chunks +19 lines, -0 lines 0 comments Download
M test/cctest/test-thread-termination.cc View 1 2 3 1 chunk +39 lines, -0 lines 2 comments Download

Messages

Total messages: 15 (0 generated)
Vyacheslav Egorov (Google)
Forwarding to Daniel Clifford (V8 TLM) for review. https://codereview.chromium.org/11142013/diff/1/AUTHORS File AUTHORS (right): https://codereview.chromium.org/11142013/diff/1/AUTHORS#newcode12 AUTHORS:12: Bloomberg ...
8 years ago (2012-12-06 14:35:29 UTC) #1
apaprocki
On 2012/12/06 14:35:29, Vyacheslav Egorov (Google) wrote: > Forwarding to Daniel Clifford (V8 TLM) for ...
8 years ago (2012-12-06 14:56:45 UTC) #2
Sven Panne
Just a single quick drive-by comment. Apart from this, I would be interested in the ...
8 years ago (2012-12-06 15:07:34 UTC) #3
apaprocki
On 2012/12/06 15:07:34, Sven Panne wrote: > Just a single quick drive-by comment. Apart from ...
8 years ago (2012-12-06 15:15:59 UTC) #4
Sven Panne
OK, the use case sounds, well, useful. :-) From my point of view this CL ...
8 years ago (2012-12-07 09:04:27 UTC) #5
Yang
LGTM with some comments. I'll land this if you change the API wrt implicit Isolate ...
8 years ago (2012-12-07 15:03:48 UTC) #6
apaprocki
Updated the patch according to comments. Rather than duplicate the guts of StackGuard::Continue() inside StackGuard::ResumeExecution(), ...
8 years ago (2012-12-13 02:20:43 UTC) #7
Yang
On 2012/12/13 02:20:43, apaprocki wrote: > Updated the patch according to comments. > > Rather ...
8 years ago (2012-12-13 15:51:00 UTC) #8
apaprocki
I'm employed by Bloomberg but my open-source work is done under my personal e-mail address. ...
8 years ago (2012-12-13 15:56:46 UTC) #9
apaprocki
Yang, I made the appropriate changes to address the failures that caused this to be ...
7 years, 9 months ago (2013-03-16 15:36:14 UTC) #10
Yang
https://codereview.chromium.org/11142013/diff/30002/test/cctest/test-thread-termination.cc File test/cctest/test-thread-termination.cc (right): https://codereview.chromium.org/11142013/diff/30002/test/cctest/test-thread-termination.cc#newcode391 test/cctest/test-thread-termination.cc:391: CHECK(!v8::V8::IsExecutionTerminating()); If you remove the two lines above, the ...
7 years, 9 months ago (2013-03-21 10:47:42 UTC) #11
Yang
Committed patchset #6 manually as r14022 (presubmit successful).
7 years, 9 months ago (2013-03-21 10:47:47 UTC) #12
Yang
On 2013/03/21 10:47:42, Yang wrote: > https://codereview.chromium.org/11142013/diff/30002/test/cctest/test-thread-termination.cc > File test/cctest/test-thread-termination.cc (right): > > https://codereview.chromium.org/11142013/diff/30002/test/cctest/test-thread-termination.cc#newcode391 > ...
7 years, 9 months ago (2013-03-21 10:47:50 UTC) #13
Yang
On 2013/03/21 10:47:50, Yang wrote: > On 2013/03/21 10:47:42, Yang wrote: > > > https://codereview.chromium.org/11142013/diff/30002/test/cctest/test-thread-termination.cc ...
7 years, 9 months ago (2013-03-21 14:02:51 UTC) #14
apaprocki
7 years, 8 months ago (2013-04-22 12:33:36 UTC) #15
On 2013/03/21 14:02:51, Yang wrote:
> Unfortunately, we will have to revert this change for now. We are branching
this
> week and require the API to remain stable during this period. The CL by itself
> is fine, and we will reland this in probably a week from now. Sorry for any
> inconvenience!

Just pinging -- can this land now?

Thanks,
-Andrew

Powered by Google App Engine
This is Rietveld 408576698