Use scoped_refptr to transfer ownership of ProcessMemoryDumpAsyncState [chromium/src : main]

0 views
Skip to first unread message

Joe Mason (Gerrit)

unread,
Dec 2, 2025, 5:03:01 PMDec 2
to Etienne Pierre-Doray, Chromium LUCI CQ, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Etienne Pierre-Doray

Joe Mason voted

Auto-Submit+1
Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Etienne Pierre-Doray
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not 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: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I71df5054fcc83cf6ee1e4319057deafbf11ff110
Gerrit-Change-Number: 7219030
Gerrit-PatchSet: 2
Gerrit-Owner: Joe Mason <joenot...@google.com>
Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Joe Mason <joenot...@google.com>
Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Comment-Date: Tue, 02 Dec 2025 22:02:56 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Etienne Pierre-Doray (Gerrit)

unread,
Dec 9, 2025, 12:57:39 PM (11 days ago) Dec 9
to Chromium LUCI CQ, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Joe Mason

Etienne Pierre-Doray voted and added 1 comment

Votes added by Etienne Pierre-Doray

Code-Review+1
Commit-Queue+2

1 comment

Patchset-level comments
File-level comment, Patchset 6 (Latest):
Etienne Pierre-Doray . resolved

LGTM

Open in Gerrit

Related details

Attention is currently required from:
  • Joe Mason
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • 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: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I71df5054fcc83cf6ee1e4319057deafbf11ff110
Gerrit-Change-Number: 7219030
Gerrit-PatchSet: 6
Gerrit-Owner: Joe Mason <joenot...@google.com>
Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Joe Mason <joenot...@google.com>
Gerrit-Attention: Joe Mason <joenot...@google.com>
Gerrit-Comment-Date: Tue, 09 Dec 2025 17:57:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Joe Mason (Gerrit)

unread,
Dec 9, 2025, 3:40:26 PM (11 days ago) Dec 9
to Etienne Pierre-Doray, Chromium LUCI CQ, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

Joe Mason voted Commit-Queue+2

Commit-Queue+2
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • 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: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I71df5054fcc83cf6ee1e4319057deafbf11ff110
Gerrit-Change-Number: 7219030
Gerrit-PatchSet: 7
Gerrit-Owner: Joe Mason <joenot...@google.com>
Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Joe Mason <joenot...@google.com>
Gerrit-Comment-Date: Tue, 09 Dec 2025 20:40:17 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
Dec 9, 2025, 3:43:06 PM (11 days ago) Dec 9
to Etienne Pierre-Doray, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

Chromium LUCI CQ submitted the change

Unreviewed changes

6 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.

Change information

Commit message:
Use scoped_refptr to transfer ownership of ProcessMemoryDumpAsyncState

Usually there will only be one scoped_refptr with a reference to the
state object, but ContinueAsyncProcessDump will briefly create a second
while calling PostTask. This lets the function keep the object alive if
PostTask returns false. Avoids a leak if the task is dropped without
running after the PostTask succeeds.

This will let an upcoming patch store a RAII object in
ProcessMemoryDumpAsyncState, knowing that the destructor will run in all
paths except abnormal termination.
Bug: 449150643
Change-Id: I71df5054fcc83cf6ee1e4319057deafbf11ff110
Reviewed-by: Etienne Pierre-Doray <etie...@chromium.org>
Auto-Submit: Joe Mason <joenot...@google.com>
Commit-Queue: Joe Mason <joenot...@google.com>
Cr-Commit-Position: refs/heads/main@{#1556332}
Files:
  • M base/trace_event/memory_dump_manager.cc
  • M base/trace_event/memory_dump_manager.h
Change size: M
Delta: 2 files changed, 36 insertions(+), 25 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Etienne Pierre-Doray
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: I71df5054fcc83cf6ee1e4319057deafbf11ff110
Gerrit-Change-Number: 7219030
Gerrit-PatchSet: 8
Gerrit-Owner: Joe Mason <joenot...@google.com>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Joe Mason <joenot...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages