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

Issue 388963003: Avoid allocating an exception object in the snapshot reader. (Closed)

Created:
6 years, 5 months ago by Florian Schneider
Modified:
6 years, 5 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Avoid allocating an exception object in the snapshot reader. The unhandled exception object needs only be allocated before actually returning an error from the snapshot reader, and not at each invocation of ReadObject. R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=38280

Patch Set 1 #

Total comments: 2

Patch Set 2 : preallocate error object #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 6

Patch Set 6 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -10 lines) Patch
M runtime/vm/object.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
M runtime/vm/object_store.h View 1 2 chunks +8 lines, -0 lines 0 comments Download
M runtime/vm/object_store.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M runtime/vm/raw_object_snapshot.cc View 1 2 3 4 1 chunk +24 lines, -3 lines 0 comments Download
M runtime/vm/snapshot.h View 1 4 chunks +3 lines, -1 line 0 comments Download
M runtime/vm/snapshot.cc View 1 2 3 3 chunks +8 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Florian Schneider
6 years, 5 months ago (2014-07-14 16:08:30 UTC) #1
siva
https://codereview.chromium.org/388963003/diff/1/runtime/vm/snapshot.cc File runtime/vm/snapshot.cc (right): https://codereview.chromium.org/388963003/diff/1/runtime/vm/snapshot.cc#newcode726 runtime/vm/snapshot.cc:726: *ErrorHandle() = UnhandledException::New(null_object, null_object); TryAllocate just failed which means ...
6 years, 5 months ago (2014-07-14 16:20:03 UTC) #2
Florian Schneider
https://codereview.chromium.org/388963003/diff/1/runtime/vm/snapshot.cc File runtime/vm/snapshot.cc (right): https://codereview.chromium.org/388963003/diff/1/runtime/vm/snapshot.cc#newcode726 runtime/vm/snapshot.cc:726: *ErrorHandle() = UnhandledException::New(null_object, null_object); On 2014/07/14 16:20:03, siva wrote: ...
6 years, 5 months ago (2014-07-14 17:02:40 UTC) #3
Florian Schneider
Updated with a pre-allocated exception object. I can kind of see why this was not ...
6 years, 5 months ago (2014-07-15 11:14:47 UTC) #4
siva
LGTM with one comment regarding the new UnhandledException::New method. https://codereview.chromium.org/388963003/diff/80001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/388963003/diff/80001/runtime/vm/object.cc#newcode12708 runtime/vm/object.cc:12708: ...
6 years, 5 months ago (2014-07-16 01:00:13 UTC) #5
siva
Never mind I guess if we see an unhandled exception object in a script snapshot ...
6 years, 5 months ago (2014-07-16 01:01:49 UTC) #6
Florian Schneider
Are UnhandledException objects not sent in a message snapshot, like Stacktrace objects? Is there a ...
6 years, 5 months ago (2014-07-16 11:15:42 UTC) #7
Florian Schneider
6 years, 5 months ago (2014-07-16 11:49:52 UTC) #8
Message was sent while issue was closed.
Committed patchset #6 manually as r38280 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698