[XS] Change in dart/sdk[main]: [vm] Improve packing of Sample.

0 views
Skip to first unread message

Ryan Macnak (Gerrit)

unread,
Nov 4, 2025, 5:40:35 PM (2 days ago) Nov 4
to Alexander Aprelev, Commit Queue, rev...@dartlang.org, vm-...@dartlang.org
Attention needed from Alexander Aprelev

Ryan Macnak added 1 comment

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Ryan Macnak . resolved

BEFORE

```
(gdb) ptype /o dart::Sample
/* offset | size */ type = class dart::Sample {
public:
static const int kPCArraySizeInWords;
static const int kStackBufferSizeInWords;
private:
/* 0 | 8 */ int64_t timestamp_;
/* 8 | 8 */ Dart_Port port_;
/* 16 | 8 */ dart::ThreadId tid_;
/* 24 | 16 */ dart::uword stack_buffer_[2];
/* 40 | 256 */ dart::uword pc_array_[32];
/* 296 | 8 */ dart::uword vm_tag_;
/* 304 | 8 */ dart::uword user_tag_;
/* 312 | 4 */ uint32_t state_;
/* XXX 4-byte hole */
/* 320 | 8 */ dart::Sample *next_;
/* 328 | 4 */ uint32_t allocation_identity_hash_;
/* XXX 4-byte padding */
                               /* total size (bytes):  336 */
}
```

AFTER

```
(gdb) ptype /o dart::Sample
/* offset | size */ type = class dart::Sample {
public:
static const int kPCArraySizeInWords;
static const int kStackBufferSizeInWords;
private:
/* 0 | 8 */ int64_t timestamp_;
/* 8 | 8 */ Dart_Port port_;
/* 16 | 8 */ dart::ThreadId tid_;
/* 24 | 16 */ dart::uword stack_buffer_[2];
/* 40 | 256 */ dart::uword pc_array_[32];
/* 296 | 8 */ dart::uword vm_tag_;
/* 304 | 8 */ dart::uword user_tag_;
/* 312 | 8 */ dart::Sample *next_;
/* 320 | 4 */ uint32_t state_;
/* 324 | 4 */ uint32_t allocation_identity_hash_;
                               /* total size (bytes):  328 */
}
```
Open in Gerrit

Related details

Attention is currently required from:
  • Alexander Aprelev
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement satisfiedCommit-Message-Has-TEST
  • 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: Iad37e5f7331d731f4bf0ec9978ac1d06dd8693d3
Gerrit-Change-Number: 459640
Gerrit-PatchSet: 2
Gerrit-Owner: Ryan Macnak <rma...@google.com>
Gerrit-Reviewer: Alexander Aprelev <a...@google.com>
Gerrit-Reviewer: Ryan Macnak <rma...@google.com>
Gerrit-Attention: Alexander Aprelev <a...@google.com>
Gerrit-Comment-Date: Tue, 04 Nov 2025 22:40:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Alexander Aprelev (Gerrit)

unread,
Nov 4, 2025, 5:42:02 PM (2 days ago) Nov 4
to Ryan Macnak, Alexander Aprelev, Commit Queue, rev...@dartlang.org, vm-...@dartlang.org
Attention needed from Ryan Macnak

Alexander Aprelev voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Ryan Macnak
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement satisfiedCommit-Message-Has-TEST
  • 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: Iad37e5f7331d731f4bf0ec9978ac1d06dd8693d3
Gerrit-Change-Number: 459640
Gerrit-PatchSet: 2
Gerrit-Owner: Ryan Macnak <rma...@google.com>
Gerrit-Reviewer: Alexander Aprelev <a...@google.com>
Gerrit-Reviewer: Ryan Macnak <rma...@google.com>
Gerrit-Attention: Ryan Macnak <rma...@google.com>
Gerrit-Comment-Date: Tue, 04 Nov 2025 22:41:59 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Ryan Macnak (Gerrit)

unread,
Nov 4, 2025, 6:13:56 PM (2 days ago) Nov 4
to Alexander Aprelev, Commit Queue, rev...@dartlang.org, vm-...@dartlang.org

Ryan Macnak 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 satisfiedCommit-Message-Has-TEST
  • 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: Iad37e5f7331d731f4bf0ec9978ac1d06dd8693d3
Gerrit-Change-Number: 459640
Gerrit-PatchSet: 2
Gerrit-Owner: Ryan Macnak <rma...@google.com>
Gerrit-Reviewer: Alexander Aprelev <a...@google.com>
Gerrit-Reviewer: Ryan Macnak <rma...@google.com>
Gerrit-Comment-Date: Tue, 04 Nov 2025 23:13:53 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Commit Queue (Gerrit)

unread,
Nov 4, 2025, 6:14:16 PM (2 days ago) Nov 4
to Ryan Macnak, Alexander Aprelev, rev...@dartlang.org, vm-...@dartlang.org

Commit Queue submitted the change

Change information

Commit message:
[vm] Improve packing of Sample.

TEST=ci
Change-Id: Iad37e5f7331d731f4bf0ec9978ac1d06dd8693d3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/459640
Commit-Queue: Ryan Macnak <rma...@google.com>
Reviewed-by: Alexander Aprelev <a...@google.com>
Files:
  • M runtime/vm/profiler.h
Change size: XS
Delta: 1 file changed, 1 insertion(+), 1 deletion(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Alexander Aprelev
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: Iad37e5f7331d731f4bf0ec9978ac1d06dd8693d3
Gerrit-Change-Number: 459640
Gerrit-PatchSet: 3
Gerrit-Owner: Ryan Macnak <rma...@google.com>
Gerrit-Reviewer: Alexander Aprelev <a...@google.com>
Gerrit-Reviewer: Ryan Macnak <rma...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages