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

Issue 828353002: Patch classes do not need to be finalized (Closed)

Created:
5 years, 11 months ago by hausner
Modified:
5 years, 11 months ago
Reviewers:
iposva, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Patch classes do not need to be finalized The fields and functions of a patch class are copied to the patched class after parsing. There is nothing to do when finalizing a patch class, so return immediately. The debugger ran into an overly strict assertion when finalizing a patch class. This fixes the issue. (Issue 21039). Committed: https://code.google.com/p/dart/source/detail?r=42612

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M runtime/vm/class_finalizer.cc View 1 chunk +8 lines, -0 lines 2 comments Download

Messages

Total messages: 6 (2 generated)
hausner
5 years, 11 months ago (2015-01-02 23:10:31 UTC) #2
Ivan Posva
https://codereview.chromium.org/828353002/diff/1/runtime/vm/class_finalizer.cc File runtime/vm/class_finalizer.cc (right): https://codereview.chromium.org/828353002/diff/1/runtime/vm/class_finalizer.cc#newcode2311 runtime/vm/class_finalizer.cc:2311: // patched class after parsing. There is nothing to ...
5 years, 11 months ago (2015-01-03 01:14:19 UTC) #4
hausner
Committed patchset #1 (id:1) manually as r42612 (presubmit successful).
5 years, 11 months ago (2015-01-05 20:51:55 UTC) #5
hausner
5 years, 11 months ago (2015-01-05 20:56:29 UTC) #6
Message was sent while issue was closed.
Thank you.

https://codereview.chromium.org/828353002/diff/1/runtime/vm/class_finalizer.cc
File runtime/vm/class_finalizer.cc (right):

https://codereview.chromium.org/828353002/diff/1/runtime/vm/class_finalizer.c...
runtime/vm/class_finalizer.cc:2311: // patched class after parsing. There is
nothing to finalize.
On 2015/01/03 01:14:19, Ivan Posva wrote:
> We should also make sure that we do not waste a class id on the patch class.

As per our off-line conversation, I'm leaving this as is. Assigning a class id
is done at the lowest level when allocating a new class object. Changing this
would be outside of this CL.

Powered by Google App Engine
This is Rietveld 408576698