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

Issue 1861963007: Dart VM: Fix an order-of-evaluation bug in async code. (Closed)

Created:
4 years, 8 months ago by Kevin Millikin (Google)
Modified:
4 years, 8 months ago
Reviewers:
hausner
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

Dart VM: Fix an order-of-evaluation bug in async code. Reading and writing local and static variables is a side effect that might be observable from a Future, so such reads and writes cannot be scheduled after the Future completes when they should be performed before. The same is true for throwing an exception. Closes https://github.com/dart-lang/sdk/issues/26175 R=hausner@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/6f3707f3c18029874baa8f9336c6406abc84b7dd

Patch Set 1 #

Total comments: 4

Patch Set 2 : Change `Name` to `MakeName`. #

Patch Set 3 : Merge upstream/master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -130 lines) Patch
M runtime/vm/ast_transformer.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/ast_transformer.cc View 1 21 chunks +103 lines, -129 lines 0 comments Download
A tests/language/regress_26175_test.dart View 1 chunk +72 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Kevin Millikin (Google)
https://codereview.chromium.org/1861963007/diff/1/runtime/vm/ast_transformer.cc File runtime/vm/ast_transformer.cc (right): https://codereview.chromium.org/1861963007/diff/1/runtime/vm/ast_transformer.cc#newcode230 runtime/vm/ast_transformer.cc:230: result_ = new(Z) LoadLocalNode(token_pos, result); I can't quite call ...
4 years, 8 months ago (2016-04-07 10:20:11 UTC) #1
hausner
LGTM. What throws me off a bit is that you use the noun name as ...
4 years, 8 months ago (2016-04-07 17:12:59 UTC) #2
Kevin Millikin (Google)
Committed patchset #3 (id:40001) manually as 6f3707f3c18029874baa8f9336c6406abc84b7dd (presubmit successful).
4 years, 8 months ago (2016-04-08 07:40:28 UTC) #4
Kevin Millikin (Google)
4 years, 8 months ago (2016-04-08 07:41:16 UTC) #5
Message was sent while issue was closed.
I changed 'Name' to 'MakeName'.  I'll simplify the token positions as a separate
CL.

Powered by Google App Engine
This is Rietveld 408576698