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

Issue 10915295: Instead of aborting with an assert, exit with an error when we get an OOM (Closed)

Created:
8 years, 3 months ago by siva
Modified:
8 years, 2 months ago
Reviewers:
cshapiro
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Instead of aborting with an assert, exit with an error when we get an OOM while handling messages. This is a temporary solution until we have the isolate error handling mechanism in place (for issue 1403). Committed: https://code.google.com/p/dart/source/detail?r=13433

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 9

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -1 line) Patch
M vm/exceptions.cc View 1 2 3 4 2 chunks +16 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
siva
8 years, 3 months ago (2012-09-15 01:13:42 UTC) #1
cshapiro
lgtm with minor comments https://chromiumcodereview.appspot.com/10915295/diff/3/vm/exceptions.cc File vm/exceptions.cc (right): https://chromiumcodereview.appspot.com/10915295/diff/3/vm/exceptions.cc#newcode165 vm/exceptions.cc:165: // There are no dart ...
8 years, 3 months ago (2012-09-15 03:45:31 UTC) #2
siva
8 years, 2 months ago (2012-10-09 19:01:52 UTC) #3
https://chromiumcodereview.appspot.com/10915295/diff/3/vm/exceptions.cc
File vm/exceptions.cc (right):

https://chromiumcodereview.appspot.com/10915295/diff/3/vm/exceptions.cc#newco...
vm/exceptions.cc:165: // There are no dart invocation frames on the stack we do
not
On 2012/09/15 03:45:31, cshapiro wrote:
> Might be missing a word.  How about "so we" rather than just "we"?

Done.

https://chromiumcodereview.appspot.com/10915295/diff/3/vm/exceptions.cc#newco...
vm/exceptions.cc:166: // have a caller to return to, this is a case where we
would have
On 2012/09/15 03:45:31, cshapiro wrote:
> This seems like 2 sentences.  How about a period instead of a comma after the
> to?

Done.

https://chromiumcodereview.appspot.com/10915295/diff/3/vm/exceptions.cc#newco...
vm/exceptions.cc:166: // have a caller to return to, this is a case where we
would have
On 2012/09/15 03:45:31, cshapiro wrote:
> This seems like 2 sentences.  How about a period instead of a comma after the
> to?

Done.

https://chromiumcodereview.appspot.com/10915295/diff/3/vm/exceptions.cc#newco...
vm/exceptions.cc:171: OS::Print("Exception '%s' thrown:\n",
exception.ToCString());
On 2012/09/15 03:45:31, cshapiro wrote:
> Why not OS::PrintErr?  Maybe note that we are exiting?

Done.

https://chromiumcodereview.appspot.com/10915295/diff/3/vm/exceptions.cc#newco...
vm/exceptions.cc:172: OS::Exit(255);
Agree, that would work for exits from the VM but those should all be changed to
calling the Isolate exit handler so we should probably do this as part of the
isolate exit handler change.

On 2012/09/15 03:45:31, cshapiro wrote:
> Just a thought: this is not the first place where Exit is called with a value
of
> 255.  Maybe it is time for an OS::ErrorExit or some such thing?

Powered by Google App Engine
This is Rietveld 408576698