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

Issue 19106008: Fix for issue 11680 (Closed)

Created:
7 years, 5 months ago by siva
Modified:
7 years, 4 months ago
Reviewers:
ahe, srdjan
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix for issue 11680 - implicitly store a full stack trace in Error objects when they are thrown. - the shlFromInt on Mints and Bigints was trying to allocate a new OutOfMemory exception objects instead of using the pre-allocated exception object. Made the implementation of these methods native so that they can use the pre-allocated object. - Ensure that it is not possible to allocate new OutOfMemory or StackOverflow exception objects. R=ahe@google.com, srdjan@google.com Committed: https://code.google.com/p/dart/source/detail?r=25492

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+339 lines, -62 lines) Patch
M runtime/lib/errors_patch.dart View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M runtime/lib/integers.cc View 1 2 3 4 3 chunks +23 lines, -0 lines 0 comments Download
M runtime/lib/integers.dart View 1 2 3 4 2 chunks +2 lines, -6 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/exceptions.h View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M runtime/vm/exceptions.cc View 1 2 3 4 10 chunks +123 lines, -47 lines 0 comments Download
M runtime/vm/object_store.h View 1 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M runtime/vm/object_store.cc View 1 2 3 4 3 chunks +12 lines, -3 lines 0 comments Download
M runtime/vm/symbols.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
A tests/language/error_stacktrace_test.dart View 1 2 3 1 chunk +112 lines, -0 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A tests/standalone/oom_error_stacktrace_test.dart View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
M tests/standalone/standalone.status View 1 2 3 4 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
siva
Peter could you review the test case to make sure it makes sense, Thanks.
7 years, 4 months ago (2013-07-25 01:22:55 UTC) #1
ahe
Test LGTM with comments. https://codereview.chromium.org/19106008/diff/18001/tests/language/error_stacktrace_test.dart File tests/language/error_stacktrace_test.dart (right): https://codereview.chromium.org/19106008/diff/18001/tests/language/error_stacktrace_test.dart#newcode55 tests/language/error_stacktrace_test.dart:55: } on OutOfMemoryError catch (e) ...
7 years, 4 months ago (2013-07-25 09:01:26 UTC) #2
siva
https://codereview.chromium.org/19106008/diff/18001/tests/language/error_stacktrace_test.dart File tests/language/error_stacktrace_test.dart (right): https://codereview.chromium.org/19106008/diff/18001/tests/language/error_stacktrace_test.dart#newcode55 tests/language/error_stacktrace_test.dart:55: } on OutOfMemoryError catch (e) { I have moved ...
7 years, 4 months ago (2013-07-25 17:40:25 UTC) #3
ahe
Thank you, Siva, the tests LGTM! https://codereview.chromium.org/19106008/diff/28001/tests/standalone/standalone.status File tests/standalone/standalone.status (right): https://codereview.chromium.org/19106008/diff/28001/tests/standalone/standalone.status#newcode117 tests/standalone/standalone.status:117: oom_error_stacktrace_test: Skip # ...
7 years, 4 months ago (2013-07-25 17:45:31 UTC) #4
srdjan
LGTM https://codereview.chromium.org/19106008/diff/28001/runtime/vm/exceptions.cc File runtime/vm/exceptions.cc (right): https://codereview.chromium.org/19106008/diff/28001/runtime/vm/exceptions.cc#newcode52 runtime/vm/exceptions.cc:52: virtual bool full_stacktrace() const = 0; I think ...
7 years, 4 months ago (2013-07-25 17:47:08 UTC) #5
siva
https://codereview.chromium.org/19106008/diff/28001/runtime/vm/exceptions.cc File runtime/vm/exceptions.cc (right): https://codereview.chromium.org/19106008/diff/28001/runtime/vm/exceptions.cc#newcode52 runtime/vm/exceptions.cc:52: virtual bool full_stacktrace() const = 0; On 2013/07/25 17:47:08, ...
7 years, 4 months ago (2013-07-25 19:28:42 UTC) #6
siva
7 years, 4 months ago (2013-07-25 19:29:04 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 manually as r25492 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698