Replaced unique_ptr with HeapArray in base/trace_event/process_memory_dump.cc [chromium/src : main]

2 views
Skip to first unread message

Nakuru Wubni (Gerrit)

unread,
Apr 11, 2024, 9:47:33 AMApr 11
to Tom Sepez, Adam Langley, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Adam Langley and Tom Sepez

Nakuru Wubni added 1 comment

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Nakuru Wubni . resolved

Please review my changes.

Open in Gerrit

Related details

Attention is currently required from:
  • Adam Langley
  • Tom Sepez
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
Gerrit-Change-Number: 5444547
Gerrit-PatchSet: 2
Gerrit-Owner: Nakuru Wubni <nakuru...@gitstart.dev>
Gerrit-Reviewer: Adam Langley <alan...@gmail.com>
Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
Gerrit-Attention: Adam Langley <alan...@gmail.com>
Gerrit-Attention: Tom Sepez <tse...@chromium.org>
Gerrit-Comment-Date: Thu, 11 Apr 2024 13:47:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Tom Sepez (Gerrit)

unread,
Apr 11, 2024, 1:15:45 PMApr 11
to Nakuru Wubni, Mikhail Khokhlov, Adam Langley, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Adam Langley, Mikhail Khokhlov and Nakuru Wubni

Tom Sepez added 3 comments

File base/trace_event/process_memory_dump.cc
Line 115, Patchset 2 (Latest): std::unique_ptr<PSAPI_WORKING_SET_EX_INFORMATION[]> vec(
new PSAPI_WORKING_SET_EX_INFORMATION[max_vec_size]);
Tom Sepez . unresolved

why didn't we update this one, too?

Line 118, Patchset 2 (Latest): auto vec = base::HeapArray<char>::WithSize(max_vec_size);
#elif BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA)
auto vec = base::HeapArray<unsigned char>::WithSize(max_vec_size);
Tom Sepez . unresolved

we should probably just merge these cases into a HeapArray<uint8_t> and deal with consequences later, perhaps converting as needed.

Line 130, Patchset 2 (Latest): vec.data()[i].VirtualAddress =
Tom Sepez . unresolved

Shouldn't need to call .data() here, doing so skirts safety provided by heap array's operator[].

Open in Gerrit

Related details

Attention is currently required from:
  • Adam Langley
  • Mikhail Khokhlov
  • Nakuru Wubni
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
    Gerrit-Change-Number: 5444547
    Gerrit-PatchSet: 2
    Gerrit-Owner: Nakuru Wubni <nakuru...@gitstart.dev>
    Gerrit-Reviewer: Adam Langley <alan...@gmail.com>
    Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
    Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Adam Langley <alan...@gmail.com>
    Gerrit-Attention: Nakuru Wubni <nakuru...@gitstart.dev>
    Gerrit-Attention: Mikhail Khokhlov <khok...@google.com>
    Gerrit-Comment-Date: Thu, 11 Apr 2024 17:15:35 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Nakuru Wubni (Gerrit)

    unread,
    Apr 12, 2024, 5:38:41 AMApr 12
    to Mikhail Khokhlov, Tom Sepez, Adam Langley, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
    Attention needed from Adam Langley, Mikhail Khokhlov and Tom Sepez

    Nakuru Wubni added 4 comments

    Patchset-level comments
    File-level comment, Patchset 5 (Latest):
    Nakuru Wubni . resolved

    Addressed reviews.
    Please check my code updates.

    File base/trace_event/process_memory_dump.cc
    Line 115, Patchset 2: std::unique_ptr<PSAPI_WORKING_SET_EX_INFORMATION[]> vec(
    new PSAPI_WORKING_SET_EX_INFORMATION[max_vec_size]);
    Tom Sepez . resolved

    why didn't we update this one, too?

    Nakuru Wubni

    I have merged lines 114-121 into:
    auto vec = base::HeapArray<uint8_t>::WithSize(max_vec_size);

    Line 118, Patchset 2: auto vec = base::HeapArray<char>::WithSize(max_vec_size);

    #elif BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA)
    auto vec = base::HeapArray<unsigned char>::WithSize(max_vec_size);
    Tom Sepez . resolved

    we should probably just merge these cases into a HeapArray<uint8_t> and deal with consequences later, perhaps converting as needed.

    Nakuru Wubni

    I have merged lines 114-121 into:
    auto vec = base::HeapArray<uint8_t>::WithSize(max_vec_size);

    Line 130, Patchset 2: vec.data()[i].VirtualAddress =
    Tom Sepez . resolved

    Shouldn't need to call .data() here, doing so skirts safety provided by heap array's operator[].

    Nakuru Wubni

    Changed vec.data()[i] to vec[i].

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Adam Langley
    • Mikhail Khokhlov
    • Tom Sepez
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
    Gerrit-Change-Number: 5444547
    Gerrit-PatchSet: 5
    Gerrit-Owner: Nakuru Wubni <nakuru...@gitstart.dev>
    Gerrit-Reviewer: Adam Langley <alan...@gmail.com>
    Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
    Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Adam Langley <alan...@gmail.com>
    Gerrit-Attention: Tom Sepez <tse...@chromium.org>
    Gerrit-Attention: Mikhail Khokhlov <khok...@google.com>
    Gerrit-Comment-Date: Fri, 12 Apr 2024 09:38:30 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Tom Sepez <tse...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Nakuru Wubni (Gerrit)

    unread,
    Apr 18, 2024, 10:06:25 AMApr 18
    to Mikhail Khokhlov, Tom Sepez, Adam Langley, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
    Attention needed from Adam Langley, Mikhail Khokhlov and Tom Sepez

    Nakuru Wubni added 1 comment

    Patchset-level comments
    Nakuru Wubni . resolved

    Kindly review my updates.

    Gerrit-Comment-Date: Thu, 18 Apr 2024 14:06:15 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Nakuru Wubni (Gerrit)

    unread,
    May 14, 2024, 3:07:50 AMMay 14
    to Mikhail Khokhlov, Tom Sepez, Adam Langley, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
    Attention needed from Adam Langley, Mikhail Khokhlov and Tom Sepez

    Nakuru Wubni added 1 comment

    Patchset-level comments
    Nakuru Wubni . unresolved

    This CL needs review.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Adam Langley
    • Mikhail Khokhlov
    • Tom Sepez
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
      Gerrit-Change-Number: 5444547
      Gerrit-PatchSet: 5
      Gerrit-Owner: Nakuru Wubni <nakuru...@gitstart.dev>
      Gerrit-Reviewer: Adam Langley <alan...@gmail.com>
      Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
      Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
      Gerrit-Attention: Adam Langley <alan...@gmail.com>
      Gerrit-Attention: Tom Sepez <tse...@chromium.org>
      Gerrit-Attention: Mikhail Khokhlov <khok...@google.com>
      Gerrit-Comment-Date: Tue, 14 May 2024 07:07:17 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Mikhail Khokhlov (Gerrit)

      unread,
      May 14, 2024, 5:35:01 AMMay 14
      to Nakuru Wubni, Chromium LUCI CQ, Tom Sepez, Adam Langley, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
      Attention needed from Adam Langley, Nakuru Wubni and Tom Sepez

      Mikhail Khokhlov added 1 comment

      Patchset-level comments
      Nakuru Wubni . unresolved

      This CL needs review.

      Mikhail Khokhlov

      Please take a look at build failures on Mac and Win, you'll need to cast pointers to the right types there.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Adam Langley
      • Nakuru Wubni
      • Tom Sepez
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
      Gerrit-Change-Number: 5444547
      Gerrit-PatchSet: 5
      Gerrit-Owner: Nakuru Wubni <nakuru...@gitstart.dev>
      Gerrit-Reviewer: Adam Langley <alan...@gmail.com>
      Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
      Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
      Gerrit-Attention: Adam Langley <alan...@gmail.com>
      Gerrit-Attention: Tom Sepez <tse...@chromium.org>
      Gerrit-Attention: Nakuru Wubni <nakuru...@gitstart.dev>
      Gerrit-Comment-Date: Tue, 14 May 2024 09:34:50 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Nakuru Wubni <nakuru...@gitstart.dev>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Nakuru Wubni (Gerrit)

      unread,
      May 15, 2024, 4:58:21 AMMay 15
      to Chromium LUCI CQ, Mikhail Khokhlov, Tom Sepez, Adam Langley, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
      Attention needed from Adam Langley, Mikhail Khokhlov and Tom Sepez

      Nakuru Wubni added 1 comment

      Patchset-level comments
      File-level comment, Patchset 5:
      Nakuru Wubni . resolved

      This CL needs review.

      Mikhail Khokhlov

      Please take a look at build failures on Mac and Win, you'll need to cast pointers to the right types there.

      Nakuru Wubni

      I have addressed them.
      Please review and try building it again.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Adam Langley
      • Mikhail Khokhlov
      • Tom Sepez
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Review
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
      Gerrit-Change-Number: 5444547
      Gerrit-PatchSet: 6
      Gerrit-Owner: Nakuru Wubni <nakuru...@gitstart.dev>
      Gerrit-Reviewer: Adam Langley <alan...@gmail.com>
      Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
      Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
      Gerrit-Attention: Adam Langley <alan...@gmail.com>
      Gerrit-Attention: Tom Sepez <tse...@chromium.org>
      Gerrit-Attention: Mikhail Khokhlov <khok...@google.com>
      Gerrit-Comment-Date: Wed, 15 May 2024 08:58:13 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Mikhail Khokhlov <khok...@google.com>
      Comment-In-Reply-To: Nakuru Wubni <nakuru...@gitstart.dev>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Mikhail Khokhlov (Gerrit)

      unread,
      May 15, 2024, 8:51:43 AMMay 15
      to Nakuru Wubni, Chromium LUCI CQ, Tom Sepez, Adam Langley, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
      Attention needed from Adam Langley, Nakuru Wubni and Tom Sepez

      Mikhail Khokhlov voted and added 1 comment

      Votes added by Mikhail Khokhlov

      Code-Review+1

      1 comment

      Patchset-level comments
      File-level comment, Patchset 6 (Latest):
      Mikhail Khokhlov . resolved

      LGTM from my side, but please also wait for someone who has a broader context on this change to approve.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Adam Langley
      • Nakuru Wubni
      • Tom Sepez
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Review
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
      Gerrit-Change-Number: 5444547
      Gerrit-PatchSet: 6
      Gerrit-Owner: Nakuru Wubni <nakuru...@gitstart.dev>
      Gerrit-Reviewer: Adam Langley <alan...@gmail.com>
      Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
      Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
      Gerrit-Attention: Adam Langley <alan...@gmail.com>
      Gerrit-Attention: Tom Sepez <tse...@chromium.org>
      Gerrit-Attention: Nakuru Wubni <nakuru...@gitstart.dev>
      Gerrit-Comment-Date: Wed, 15 May 2024 12:51:31 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Nakuru Wubni (Gerrit)

      unread,
      May 21, 2024, 1:19:09 PMMay 21
      to Mikhail Khokhlov, Chromium LUCI CQ, Tom Sepez, Adam Langley, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
      Attention needed from Adam Langley and Tom Sepez

      Nakuru Wubni added 1 comment

      File base/trace_event/process_memory_dump.cc
      Line 118, Patchset 2: auto vec = base::HeapArray<char>::WithSize(max_vec_size);
      #elif BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA)
      auto vec = base::HeapArray<unsigned char>::WithSize(max_vec_size);
      Tom Sepez . resolved

      we should probably just merge these cases into a HeapArray<uint8_t> and deal with consequences later, perhaps converting as needed.

      Nakuru Wubni

      I have merged lines 114-121 into:
      auto vec = base::HeapArray<uint8_t>::WithSize(max_vec_size);

      Nakuru Wubni

      Hello, Tom.
      This approach didn't work.
      I had to revert your suggestion to the way I had it before.
      All the checks are fine now.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Adam Langley
      • Tom Sepez
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Review
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
      Gerrit-Change-Number: 5444547
      Gerrit-PatchSet: 6
      Gerrit-Owner: Nakuru Wubni <nakuru...@gitstart.dev>
      Gerrit-Reviewer: Adam Langley <alan...@gmail.com>
      Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
      Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
      Gerrit-Attention: Adam Langley <alan...@gmail.com>
      Gerrit-Attention: Tom Sepez <tse...@chromium.org>
      Gerrit-Comment-Date: Tue, 21 May 2024 17:18:55 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Tom Sepez <tse...@chromium.org>
      Comment-In-Reply-To: Nakuru Wubni <nakuru...@gitstart.dev>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Tom Sepez (Gerrit)

      unread,
      May 21, 2024, 2:13:22 PMMay 21
      to Nakuru Wubni, Mikhail Khokhlov, Chromium LUCI CQ, Adam Langley, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
      Attention needed from Adam Langley and Nakuru Wubni

      Tom Sepez added 1 comment

      File base/trace_event/process_memory_dump.cc
      Line 134, Patchset 6 (Latest): DWORD vec_size = static_cast<DWORD>(
      page_count * sizeof(PSAPI_WORKING_SET_EX_INFORMATION));
      Tom Sepez . unresolved

      we can make a span from vec.first(static_cast<DWORD>(...)) then pass span.data(), span.size() on the next line.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Adam Langley
      • Nakuru Wubni
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
        Gerrit-Change-Number: 5444547
        Gerrit-PatchSet: 6
        Gerrit-Owner: Nakuru Wubni <nakuru...@gitstart.dev>
        Gerrit-Reviewer: Adam Langley <alan...@gmail.com>
        Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
        Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
        Gerrit-Attention: Adam Langley <alan...@gmail.com>
        Gerrit-Attention: Nakuru Wubni <nakuru...@gitstart.dev>
        Gerrit-Comment-Date: Tue, 21 May 2024 18:12:42 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Nakuru Wubni (Gerrit)

        unread,
        May 23, 2024, 2:08:47 AMMay 23
        to Mikhail Khokhlov, Chromium LUCI CQ, Tom Sepez, Adam Langley, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
        Attention needed from Adam Langley and Tom Sepez

        Nakuru Wubni added 1 comment

        File base/trace_event/process_memory_dump.cc
        Line 134, Patchset 6: DWORD vec_size = static_cast<DWORD>(
        page_count * sizeof(PSAPI_WORKING_SET_EX_INFORMATION));
        Tom Sepez . resolved

        we can make a span from vec.first(static_cast<DWORD>(...)) then pass span.data(), span.size() on the next line.

        Nakuru Wubni

        I have applied your suggestion.
        Please confirm.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Adam Langley
        • Tom Sepez
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Review
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
        Gerrit-Change-Number: 5444547
        Gerrit-PatchSet: 7
        Gerrit-Owner: Nakuru Wubni <nakuru...@gitstart.dev>
        Gerrit-Reviewer: Adam Langley <alan...@gmail.com>
        Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
        Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
        Gerrit-Attention: Adam Langley <alan...@gmail.com>
        Gerrit-Attention: Tom Sepez <tse...@chromium.org>
        Gerrit-Comment-Date: Thu, 23 May 2024 06:08:25 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Tom Sepez <tse...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Tom Sepez (Gerrit)

        unread,
        May 23, 2024, 6:33:09 PMMay 23
        to Nakuru Wubni, Mikhail Khokhlov, Chromium LUCI CQ, Adam Langley, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
        Attention needed from Adam Langley and Nakuru Wubni

        Tom Sepez added 1 comment

        File base/trace_event/process_memory_dump.cc
        Line 137, Patchset 7 (Latest): static_cast<DWORD>(span.size()));
        Tom Sepez . unresolved

        This would seem to be a byte count in the old code, but an element count in the new code.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Adam Langley
        • Nakuru Wubni
        Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
          Gerrit-Change-Number: 5444547
          Gerrit-PatchSet: 7
          Gerrit-Owner: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Reviewer: Adam Langley <alan...@gmail.com>
          Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
          Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
          Gerrit-Attention: Adam Langley <alan...@gmail.com>
          Gerrit-Attention: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Comment-Date: Thu, 23 May 2024 22:32:53 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Nakuru Wubni (Gerrit)

          unread,
          May 24, 2024, 10:03:56 AMMay 24
          to Mikhail Khokhlov, Chromium LUCI CQ, Tom Sepez, Adam Langley, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
          Attention needed from Adam Langley and Tom Sepez

          Nakuru Wubni added 1 comment

          File base/trace_event/process_memory_dump.cc
          Line 137, Patchset 7: static_cast<DWORD>(span.size()));
          Tom Sepez . unresolved

          This would seem to be a byte count in the old code, but an element count in the new code.

          Nakuru Wubni

          Hi, Tom.
          I removed the static_cast<DWORD>.
          Does having just span.size() fix it?

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Adam Langley
          • Tom Sepez
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
          Gerrit-Change-Number: 5444547
          Gerrit-PatchSet: 8
          Gerrit-Owner: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Reviewer: Adam Langley <alan...@gmail.com>
          Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
          Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
          Gerrit-Attention: Adam Langley <alan...@gmail.com>
          Gerrit-Attention: Tom Sepez <tse...@chromium.org>
          Gerrit-Comment-Date: Fri, 24 May 2024 14:03:39 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Tom Sepez <tse...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Tom Sepez (Gerrit)

          unread,
          May 28, 2024, 11:38:38 AMMay 28
          to Nakuru Wubni, Mikhail Khokhlov, Chromium LUCI CQ, Adam Langley, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
          Attention needed from Adam Langley and Nakuru Wubni

          Tom Sepez added 1 comment

          File base/trace_event/process_memory_dump.cc
          Line 137, Patchset 7: static_cast<DWORD>(span.size()));
          Tom Sepez . unresolved

          This would seem to be a byte count in the old code, but an element count in the new code.

          Nakuru Wubni

          Hi, Tom.
          I removed the static_cast<DWORD>.
          Does having just span.size() fix it?

          Tom Sepez

          No, there's a multiplication by sizeof() that is missing. size_bytes() does this for us.

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Adam Langley
          • Nakuru Wubni
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
          Gerrit-Change-Number: 5444547
          Gerrit-PatchSet: 8
          Gerrit-Owner: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Reviewer: Adam Langley <alan...@gmail.com>
          Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
          Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
          Gerrit-Attention: Adam Langley <alan...@gmail.com>
          Gerrit-Attention: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Comment-Date: Tue, 28 May 2024 15:38:19 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Tom Sepez <tse...@chromium.org>
          Comment-In-Reply-To: Nakuru Wubni <nakuru...@gitstart.dev>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Nakuru Wubni (Gerrit)

          unread,
          Jun 3, 2024, 8:18:46 AMJun 3
          to Mikhail Khokhlov, Chromium LUCI CQ, Tom Sepez, Adam Langley, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
          Attention needed from Adam Langley and Tom Sepez

          Nakuru Wubni added 2 comments

          Patchset-level comments
          File-level comment, Patchset 10 (Latest):
          Nakuru Wubni . resolved

          Please review changes.

          File base/trace_event/process_memory_dump.cc
          Line 137, Patchset 7: static_cast<DWORD>(span.size()));
          Tom Sepez . resolved

          This would seem to be a byte count in the old code, but an element count in the new code.

          Nakuru Wubni

          Hi, Tom.
          I removed the static_cast<DWORD>.
          Does having just span.size() fix it?

          Tom Sepez

          No, there's a multiplication by sizeof() that is missing. size_bytes() does this for us.

          Nakuru Wubni

          Updated to span.size_bytes()

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Adam Langley
          • Tom Sepez
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not satisfiedCode-Review
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
          Gerrit-Change-Number: 5444547
          Gerrit-PatchSet: 10
          Gerrit-Owner: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Reviewer: Adam Langley <alan...@gmail.com>
          Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
          Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
          Gerrit-Attention: Adam Langley <alan...@gmail.com>
          Gerrit-Attention: Tom Sepez <tse...@chromium.org>
          Gerrit-Comment-Date: Mon, 03 Jun 2024 12:18:34 +0000
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Tom Sepez (Gerrit)

          unread,
          Jun 3, 2024, 12:46:33 PMJun 3
          to Nakuru Wubni, Mikhail Khokhlov, Chromium LUCI CQ, Adam Langley, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
          Attention needed from Adam Langley and Nakuru Wubni

          Tom Sepez voted Code-Review+1

          Code-Review+1
          Open in Gerrit

          Related details

          Attention is currently required from:
          • Adam Langley
          • Nakuru Wubni
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Review
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
          Gerrit-Change-Number: 5444547
          Gerrit-PatchSet: 10
          Gerrit-Owner: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Reviewer: Adam Langley <alan...@gmail.com>
          Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
          Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
          Gerrit-Attention: Adam Langley <alan...@gmail.com>
          Gerrit-Attention: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Comment-Date: Mon, 03 Jun 2024 16:46:20 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          open
          diffy

          Nakuru Wubni (Gerrit)

          unread,
          Jun 4, 2024, 3:49:44 AMJun 4
          to Tom Sepez, Mikhail Khokhlov, Chromium LUCI CQ, Adam Langley, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
          Attention needed from Adam Langley

          Nakuru Wubni voted Commit-Queue+2

          Commit-Queue+2
          Open in Gerrit

          Related details

          Attention is currently required from:
          • Adam Langley
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Review
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
          Gerrit-Change-Number: 5444547
          Gerrit-PatchSet: 10
          Gerrit-Owner: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Reviewer: Adam Langley <alan...@gmail.com>
          Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
          Gerrit-Reviewer: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
          Gerrit-Attention: Adam Langley <alan...@gmail.com>
          Gerrit-Comment-Date: Tue, 04 Jun 2024 07:49:24 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          open
          diffy

          Adam Langley (Gerrit)

          unread,
          Jun 4, 2024, 9:10:32 AMJun 4
          to Nakuru Wubni, Tom Sepez, Mikhail Khokhlov, Chromium LUCI CQ, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
          Attention needed from Nakuru Wubni

          Adam Langley voted and added 1 comment

          Votes added by Adam Langley

          Code-Review+1

          1 comment

          Patchset-level comments
          Adam Langley . resolved

          (p.s. wrong Adam Langley was set as a reviewer.)

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Nakuru Wubni
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Review
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
          Gerrit-Change-Number: 5444547
          Gerrit-PatchSet: 10
          Gerrit-Owner: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Reviewer: Adam Langley <a...@chromium.org>
          Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
          Gerrit-Reviewer: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
          Gerrit-Attention: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Comment-Date: Tue, 04 Jun 2024 13:10:18 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          open
          diffy

          Nakuru Wubni (Gerrit)

          unread,
          Jun 7, 2024, 5:15:16 AMJun 7
          to Adam Langley, Tom Sepez, Mikhail Khokhlov, Chromium LUCI CQ, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

          Nakuru Wubni added 1 comment

          Patchset-level comments
          Nakuru Wubni . resolved

          Hi,
          This CL is ready to submit.

          Open in Gerrit

          Related details

          Attention set is empty
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Review
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
          Gerrit-Change-Number: 5444547
          Gerrit-PatchSet: 10
          Gerrit-Owner: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Reviewer: Adam Langley <a...@chromium.org>
          Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
          Gerrit-Reviewer: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
          Gerrit-Comment-Date: Fri, 07 Jun 2024 09:15:04 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          open
          diffy

          Nakuru Wubni (Gerrit)

          unread,
          Jun 12, 2024, 1:19:28 PMJun 12
          to Adam Langley, Tom Sepez, Mikhail Khokhlov, Chromium LUCI CQ, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

          Nakuru Wubni added 1 comment

          Patchset-level comments
          Nakuru Wubni . resolved

          I don't have the rights to commit. Please any committer should submit.

          Open in Gerrit

          Related details

          Attention set is empty
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Review
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
          Gerrit-Change-Number: 5444547
          Gerrit-PatchSet: 10
          Gerrit-Owner: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Reviewer: Adam Langley <a...@chromium.org>
          Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
          Gerrit-Reviewer: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
          Gerrit-Comment-Date: Wed, 12 Jun 2024 17:19:11 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          open
          diffy

          Adam Langley (Gerrit)

          unread,
          Jun 17, 2024, 8:37:41 PM (14 days ago) Jun 17
          to Nakuru Wubni, Tom Sepez, Mikhail Khokhlov, Chromium LUCI CQ, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
          Attention needed from Nakuru Wubni

          Adam Langley voted Commit-Queue+2

          Commit-Queue+2
          Open in Gerrit

          Related details

          Attention is currently required from:
          • Nakuru Wubni
          Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement satisfiedCode-Review
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
          Gerrit-Change-Number: 5444547
          Gerrit-PatchSet: 10
          Gerrit-Owner: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Reviewer: Adam Langley <a...@chromium.org>
          Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
          Gerrit-Reviewer: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
          Gerrit-Attention: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Comment-Date: Tue, 18 Jun 2024 00:37:28 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          open
          diffy

          Adam Langley (Gerrit)

          unread,
          Jun 17, 2024, 10:04:36 PM (14 days ago) Jun 17
          to Nakuru Wubni, Tom Sepez, Mikhail Khokhlov, Chromium LUCI CQ, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
          Gerrit-Comment-Date: Tue, 18 Jun 2024 02:04:21 +0000
          Gerrit-HasComments: No
          Gerrit-Has-Labels: Yes
          satisfied_requirement
          open
          diffy

          Chromium LUCI CQ (Gerrit)

          unread,
          Jun 17, 2024, 10:33:28 PM (14 days ago) Jun 17
          to Nakuru Wubni, Adam Langley, Tom Sepez, Mikhail Khokhlov, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

          Chromium LUCI CQ submitted the change

          Change information

          Commit message:
          Replaced unique_ptr with HeapArray in
          base/trace_event/process_memory_dump.cc

          This cl changed occurences of unique_ptr to HeapArray
          Bug: 326458682, 326458967
          Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
          Fixed: 326458682, 326458967
          Reviewed-by: Tom Sepez <tse...@chromium.org>
          Reviewed-by: Mikhail Khokhlov <khok...@google.com>
          Reviewed-by: Adam Langley <a...@chromium.org>
          Commit-Queue: Adam Langley <a...@chromium.org>
          Cr-Commit-Position: refs/heads/main@{#1316224}
          Files:
          • M base/trace_event/process_memory_dump.cc
          Change size: S
          Delta: 1 file changed, 13 insertions(+), 10 deletions(-)
          Branch: refs/heads/main
          Submit Requirements:
          • requirement satisfiedCode-Review: +1 by Adam Langley, +1 by Tom Sepez, +1 by Mikhail Khokhlov
          Open in Gerrit
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: merged
          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I76a2443217f4bd1ecb9c63b97e54606ac4cd57a8
          Gerrit-Change-Number: 5444547
          Gerrit-PatchSet: 11
          Gerrit-Owner: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Reviewer: Adam Langley <a...@chromium.org>
          Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
          Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
          Gerrit-Reviewer: Nakuru Wubni <nakuru...@gitstart.dev>
          Gerrit-Reviewer: Tom Sepez <tse...@chromium.org>
          open
          diffy
          satisfied_requirement
          Reply all
          Reply to author
          Forward
          0 new messages