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

Issue 2771443003: [kernel] Fix getter, run service tests in debug mode (Closed)

Created:
3 years, 9 months ago by jensj
Modified:
3 years, 9 months ago
CC:
reviews_dartlang.org, turnidge, rmacnak, Cutch, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[kernel] Fix getter, run service tests in debug mode Don't create getters for uninitialized static fields. This fixes two assert hits that was hit when running service tests in debug mode via kernel. These can thus now be enabled. BUG= R=kmillikin@google.com Committed: https://github.com/dart-lang/sdk/commit/dc566e137b7e1765f6615410a07e120230eaccf4

Patch Set 1 #

Total comments: 1

Patch Set 2 : Re-insert assert, don't create getter for static field without initializer #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M runtime/observatory/tests/service/service_kernel.status View 1 chunk +0 lines, -3 lines 0 comments Download
M runtime/vm/kernel_reader.cc View 1 1 chunk +4 lines, -0 lines 1 comment Download

Messages

Total messages: 8 (3 generated)
jensj
2 tests fail in debug mode without removing the assert. Can easily reproduce by hand: ...
3 years, 9 months ago (2017-03-22 11:49:01 UTC) #2
Kevin Millikin (Google)
https://codereview.chromium.org/2771443003/diff/1/runtime/vm/kernel_to_il.cc File runtime/vm/kernel_to_il.cc (left): https://codereview.chromium.org/2771443003/diff/1/runtime/vm/kernel_to_il.cc#oldcode3554 runtime/vm/kernel_to_il.cc:3554: ASSERT(field.has_initializer()); I think the ASSERT is indicating that something ...
3 years, 9 months ago (2017-03-22 13:09:38 UTC) #3
jensj
Yep, that works.
3 years, 9 months ago (2017-03-22 13:22:45 UTC) #4
Kevin Millikin (Google)
LGTM but add a comment explaining why we intend the early return in that case. ...
3 years, 9 months ago (2017-03-22 14:11:26 UTC) #5
jensj
3 years, 9 months ago (2017-03-23 07:26:18 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
dc566e137b7e1765f6615410a07e120230eaccf4 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698