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

Issue 2418673002: Fix unoptimized code calling a disabled code when --verify-on-transition is enabled. (Closed)

Created:
4 years, 2 months ago by rmacnak
Modified:
4 years, 2 months ago
Reviewers:
Florian Schneider
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix unoptimized code calling a disabled code when --verify-on-transition is enabled. Unoptimized code has a static call to optimized code. Optimized code prologue goes to the OptimizeInvokedFunction runtime. Callee schedule for background compilation and current code set the return entries return value. Verify-on-transition triggers a safepoint, wherein the background compiler disables the old optimized code. The OptimizedInvokedFunction stub calls through the disabled code. FixCallersTarget see an unoptimized caller. BOOM Similar problem without --verify-on-transition, except the safepoint comes from BackgroundCompiler::CompileOptimized. Fixes #26927. R=fschneider@google.com Committed: https://github.com/dart-lang/sdk/commit/74e6376b5c602250083b168723374dac7027cdce

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : dbc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -24 lines) Patch
M runtime/vm/code_generator.cc View 1 2 chunks +2 lines, -6 lines 0 comments Download
M runtime/vm/simulator_dbc.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M runtime/vm/stub_code_arm.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M runtime/vm/stub_code_arm64.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M runtime/vm/stub_code_ia32.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M runtime/vm/stub_code_mips.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M runtime/vm/stub_code_x64.cc View 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
rmacnak
4 years, 2 months ago (2016-10-13 21:23:03 UTC) #3
Florian Schneider
LGTM!
4 years, 2 months ago (2016-10-13 21:27:46 UTC) #4
rmacnak
+dbc, PTAL
4 years, 2 months ago (2016-10-13 23:06:15 UTC) #5
rmacnak
Committed patchset #3 (id:40001) manually as 74e6376b5c602250083b168723374dac7027cdce (presubmit successful).
4 years, 2 months ago (2016-10-14 17:01:48 UTC) #7
Florian Schneider
4 years, 2 months ago (2016-10-14 17:20:00 UTC) #8
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698