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

Issue 1159393003: Fix result cid of CompactLinkedHashMap._index native getter. (Closed)

Created:
5 years, 6 months ago by Florian Schneider
Modified:
5 years, 6 months ago
Reviewers:
koda, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix result cid of CompactLinkedHashMap._index native getter. This field can be null when a hash map is deserialized from a snapshot where the index is regenerated. BUG= R=iposva@google.com, koda@google.com Committed: https://github.com/dart-lang/sdk/commit/63209c93d3572926c42e748395ebc9f31dbce273

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M runtime/vm/flow_graph_builder.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (1 generated)
Florian Schneider
5 years, 6 months ago (2015-06-03 14:59:05 UTC) #2
Ivan Posva
LGTM! -Ivan
5 years, 6 months ago (2015-06-03 14:59:39 UTC) #3
koda
lgtm
5 years, 6 months ago (2015-06-03 15:00:51 UTC) #4
Florian Schneider
Committed patchset #1 (id:1) manually as 63209c93d3572926c42e748395ebc9f31dbce273 (presubmit successful).
5 years, 6 months ago (2015-06-03 15:01:39 UTC) #5
koda
Thanks for fixing this. In an earlier version, an empty index array was allocated in ...
5 years, 6 months ago (2015-06-03 15:13:13 UTC) #6
Florian Schneider
5 years, 6 months ago (2015-06-04 08:39:23 UTC) #7
Message was sent while issue was closed.
On 2015/06/03 15:13:13, koda wrote:
> Thanks for fixing this. In an earlier version, an empty index array was
> allocated in the deserialization (and then populated in Dart). That would have
> avoided this issue.
> 
> Is there a significant performance impact from having this as dynamic?

There is a check for null, but in case of using an empty array, there would be a
length-check instead, so I think the approach of using null is as good.

Powered by Google App Engine
This is Rietveld 408576698