[S] Change in dart/sdk[main]: [pkg/vm_service] Handle lack of optimized out variables in interpreter.

0 views
Skip to first unread message

Tess Strickland (Gerrit)

unread,
Nov 25, 2025, 8:19:40 AM (7 days ago) Nov 25
to Alexander Markov, Commit Queue, rev...@dartlang.org
Attention needed from Alexander Markov

Tess Strickland added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Tess Strickland . resolved

A slightly different approach here, since the test is testing something that isn't actually required for the interpreter, so I'm adjusting the test instead to just test the variable evaluation as normal when interpreted.

Open in Gerrit

Related details

Attention is currently required from:
  • Alexander Markov
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I964b75fcfbd789aa7ee5b02c325d028a1a9394f4
Gerrit-Change-Number: 464441
Gerrit-PatchSet: 1
Gerrit-Owner: Tess Strickland <sstr...@google.com>
Gerrit-Reviewer: Alexander Markov <alexm...@google.com>
Gerrit-Reviewer: Tess Strickland <sstr...@google.com>
Gerrit-Attention: Alexander Markov <alexm...@google.com>
Gerrit-Comment-Date: Tue, 25 Nov 2025 13:19:34 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Alexander Markov (Gerrit)

unread,
Dec 1, 2025, 11:48:08 AM (yesterday) Dec 1
to Tess Strickland, Alexander Markov, Commit Queue, rev...@dartlang.org
Attention needed from Tess Strickland

Alexander Markov added 1 comment

File pkg/vm_service/test/evaluate_optimized_out_variable_test.dart
Line 52, Patchset 1 (Latest):final isOptimizedOut = !isInterpreted;
Alexander Markov . unresolved

The detection of the interpreted mode and different test expectations look fragile.
I think the ability to correctly evaluate `data.length` is (also) a correct behavior, so the test should just accept both behaviors without checking if interpreter is used or not.

Open in Gerrit

Related details

Attention is currently required from:
  • Tess Strickland
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I964b75fcfbd789aa7ee5b02c325d028a1a9394f4
Gerrit-Change-Number: 464441
Gerrit-PatchSet: 1
Gerrit-Owner: Tess Strickland <sstr...@google.com>
Gerrit-Reviewer: Alexander Markov <alexm...@google.com>
Gerrit-Reviewer: Tess Strickland <sstr...@google.com>
Gerrit-Attention: Tess Strickland <sstr...@google.com>
Gerrit-Comment-Date: Mon, 01 Dec 2025 16:48:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Tess Strickland (Gerrit)

unread,
7:30 AM (8 hours ago) 7:30 AM
to Alexander Markov, Commit Queue, rev...@dartlang.org
Attention needed from Alexander Markov

Tess Strickland voted and added 2 comments

Votes added by Tess Strickland

Commit-Queue+1

2 comments

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Tess Strickland . resolved

Thanks, Alex! Have changed the test to just allow either behavior, PTAL.

File pkg/vm_service/test/evaluate_optimized_out_variable_test.dart
Line 52, Patchset 1:final isOptimizedOut = !isInterpreted;
Alexander Markov . resolved

The detection of the interpreted mode and different test expectations look fragile.
I think the ability to correctly evaluate `data.length` is (also) a correct behavior, so the test should just accept both behaviors without checking if interpreter is used or not.

Tess Strickland

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Alexander Markov
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I964b75fcfbd789aa7ee5b02c325d028a1a9394f4
Gerrit-Change-Number: 464441
Gerrit-PatchSet: 2
Gerrit-Owner: Tess Strickland <sstr...@google.com>
Gerrit-Reviewer: Alexander Markov <alexm...@google.com>
Gerrit-Reviewer: Tess Strickland <sstr...@google.com>
Gerrit-Attention: Alexander Markov <alexm...@google.com>
Gerrit-Comment-Date: Tue, 02 Dec 2025 12:30:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Alexander Markov <alexm...@google.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

Alexander Markov (Gerrit)

unread,
9:26 AM (6 hours ago) 9:26 AM
to Tess Strickland, Alexander Markov, Commit Queue, rev...@dartlang.org
Attention needed from Tess Strickland

Alexander Markov voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Tess Strickland
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I964b75fcfbd789aa7ee5b02c325d028a1a9394f4
Gerrit-Change-Number: 464441
Gerrit-PatchSet: 2
Gerrit-Owner: Tess Strickland <sstr...@google.com>
Gerrit-Reviewer: Alexander Markov <alexm...@google.com>
Gerrit-Reviewer: Tess Strickland <sstr...@google.com>
Gerrit-Attention: Tess Strickland <sstr...@google.com>
Gerrit-Comment-Date: Tue, 02 Dec 2025 14:25:58 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Tess Strickland (Gerrit)

unread,
9:52 AM (6 hours ago) 9:52 AM
to Alexander Markov, Commit Queue, rev...@dartlang.org

Tess Strickland voted Commit-Queue+2

Commit-Queue+2
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I964b75fcfbd789aa7ee5b02c325d028a1a9394f4
Gerrit-Change-Number: 464441
Gerrit-PatchSet: 2
Gerrit-Owner: Tess Strickland <sstr...@google.com>
Gerrit-Reviewer: Alexander Markov <alexm...@google.com>
Gerrit-Reviewer: Tess Strickland <sstr...@google.com>
Gerrit-Comment-Date: Tue, 02 Dec 2025 14:52:46 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Commit Queue (Gerrit)

unread,
9:53 AM (6 hours ago) 9:53 AM
to Tess Strickland, Alexander Markov, rev...@dartlang.org

Commit Queue submitted the change

Change information

Commit message:
[pkg/vm_service] Handle lack of optimized out variables in interpreter.

Test the evaluation of the variable as normal when interpreted, and
expect the appropriate RPCError when not interpreted.

TEST=pkg/vm_service/test/evaluate_optimized_out_variable_test
Cq-Include-Trybots: luci.dart.try:vm-linux-release-x64-try,vm-dyn-linux-debug-x64-try,vm-dyn-mac-debug-arm64-try
Change-Id: I964b75fcfbd789aa7ee5b02c325d028a1a9394f4
Reviewed-by: Alexander Markov <alexm...@google.com>
Commit-Queue: Tess Strickland <sstr...@google.com>
Files:
  • M pkg/vm_service/test/evaluate_optimized_out_variable_test.dart
Change size: XS
Delta: 1 file changed, 4 insertions(+), 2 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Alexander Markov
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: sdk
Gerrit-Branch: main
Gerrit-Change-Id: I964b75fcfbd789aa7ee5b02c325d028a1a9394f4
Gerrit-Change-Number: 464441
Gerrit-PatchSet: 3
Gerrit-Owner: Tess Strickland <sstr...@google.com>
Gerrit-Reviewer: Alexander Markov <alexm...@google.com>
Gerrit-Reviewer: Tess Strickland <sstr...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages