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

Issue 1830283002: Be more vigilant with deferred loading. (Closed)

Created:
4 years, 9 months ago by srdjan
Modified:
4 years, 9 months ago
Reviewers:
rmacnak, hausner
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Be more vigilant with deferred loading. Abort background compilation if deferred loading occurs during parsing, since the code generated would not match the saved ICData (deopt-id assignments change, since LibraryPrefix.is_loaded changes in mutator thread while compiling in background) BUG= R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/8fb38ee2b4cadcc9029c0071bb98247ad8fc1b5d

Patch Set 1 #

Total comments: 2

Patch Set 2 : Comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -3 lines) Patch
M runtime/vm/compiler.cc View 1 5 chunks +15 lines, -3 lines 0 comments Download
M runtime/vm/object.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
srdjan
4 years, 9 months ago (2016-03-24 18:11:23 UTC) #2
rmacnak
lgtm https://chromiumcodereview.appspot.com/1830283002/diff/1/runtime/vm/compiler.cc File runtime/vm/compiler.cc (right): https://chromiumcodereview.appspot.com/1830283002/diff/1/runtime/vm/compiler.cc#newcode1175 runtime/vm/compiler.cc:1175: Compiler::AbortBackgroundCompilation(Thread::kNoDeoptId); Add comment here that we need to ...
4 years, 9 months ago (2016-03-24 18:18:19 UTC) #3
srdjan
https://chromiumcodereview.appspot.com/1830283002/diff/1/runtime/vm/compiler.cc File runtime/vm/compiler.cc (right): https://chromiumcodereview.appspot.com/1830283002/diff/1/runtime/vm/compiler.cc#newcode1175 runtime/vm/compiler.cc:1175: Compiler::AbortBackgroundCompilation(Thread::kNoDeoptId); On 2016/03/24 18:18:19, rmacnak wrote: > Add comment ...
4 years, 9 months ago (2016-03-24 18:22:09 UTC) #4
srdjan
Committed patchset #2 (id:20001) manually as 8fb38ee2b4cadcc9029c0071bb98247ad8fc1b5d (presubmit successful).
4 years, 9 months ago (2016-03-24 18:27:32 UTC) #6
hausner
DBC: The deferred prefix generation count is incremented once the prefex is marked as loaded. ...
4 years, 9 months ago (2016-03-25 15:24:01 UTC) #8
srdjan
4 years, 9 months ago (2016-03-25 16:37:51 UTC) #9
Message was sent while issue was closed.
On 2016/03/25 15:24:01, hausner wrote:
> DBC: The deferred prefix generation count is incremented once the prefex is
> marked as loaded. What happens if a background compilation starts while a load
> request is issued, but it doesn't terminate (increase the generation count)
> before the background compilation is finished? In that case, the generation
> count would not yet be incremented when the background compilation ends.

That is a valid point, I hope to be addressing that in :

https://codereview.chromium.org/1834763004/

Powered by Google App Engine
This is Rietveld 408576698