Add feature flag to disable tab discarding [chromium/src : main]

0 views
Skip to first unread message

Alex Attar (Gerrit)

unread,
Feb 17, 2026, 2:07:42 PM (3 days ago) Feb 17
to Chromium LUCI CQ, chromium...@chromium.org, chrome-gr...@chromium.org, performance-m...@chromium.org
Attention needed from Joe Mason

Alex Attar added 1 comment

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Alex Attar . resolved

PTAL,
Thanks

Open in Gerrit

Related details

Attention is currently required from:
  • Joe Mason
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: I5a00e44fb8b60351d9ad14a24ad3ded68fcc9be8
Gerrit-Change-Number: 7583415
Gerrit-PatchSet: 2
Gerrit-Owner: Alex Attar <aat...@google.com>
Gerrit-Reviewer: Alex Attar <aat...@google.com>
Gerrit-Reviewer: Joe Mason <joenot...@google.com>
Gerrit-Attention: Joe Mason <joenot...@google.com>
Gerrit-Comment-Date: Tue, 17 Feb 2026 19:07:37 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Joe Mason (Gerrit)

unread,
Feb 17, 2026, 4:42:53 PM (3 days ago) Feb 17
to Alex Attar, Chromium LUCI CQ, chromium...@chromium.org, chrome-gr...@chromium.org, performance-m...@chromium.org
Attention needed from Alex Attar

Joe Mason added 1 comment

File chrome/browser/resource_coordinator/tab_lifecycle_unit.cc
Line 309, Patchset 2 (Latest): if (base::FeatureList::IsEnabled(
Joe Mason . unresolved

We need to ignore this flag if `reason` is EXTERNAL, because then the discard's requested by an extension and ignoring it will break the extension functionality.

We might also want to ignore the flag if `reason` is FROZEN_WITH_GROWING_MEMORY, because that means the tab's already frozen but keeps allocating memory, probably because incoming Mojo messages are building up without being processed. We discard the tab as a fallback to make sure it doesn't use too much memory.

Open in Gerrit

Related details

Attention is currently required from:
  • Alex Attar
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • 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: I5a00e44fb8b60351d9ad14a24ad3ded68fcc9be8
    Gerrit-Change-Number: 7583415
    Gerrit-PatchSet: 2
    Gerrit-Owner: Alex Attar <aat...@google.com>
    Gerrit-Reviewer: Alex Attar <aat...@google.com>
    Gerrit-Reviewer: Joe Mason <joenot...@google.com>
    Gerrit-Attention: Alex Attar <aat...@google.com>
    Gerrit-Comment-Date: Tue, 17 Feb 2026 21:42:47 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Alex Attar (Gerrit)

    unread,
    Feb 18, 2026, 10:46:15 AM (2 days ago) Feb 18
    to Chromium LUCI CQ, chromium...@chromium.org, chrome-gr...@chromium.org, performance-m...@chromium.org
    Attention needed from Joe Mason

    Alex Attar added 2 comments

    Patchset-level comments
    File-level comment, Patchset 3 (Latest):
    Alex Attar . resolved

    PTAnL,
    Thanks

    File chrome/browser/resource_coordinator/tab_lifecycle_unit.cc
    Line 309, Patchset 2: if (base::FeatureList::IsEnabled(
    Joe Mason . resolved

    We need to ignore this flag if `reason` is EXTERNAL, because then the discard's requested by an extension and ignoring it will break the extension functionality.

    We might also want to ignore the flag if `reason` is FROZEN_WITH_GROWING_MEMORY, because that means the tab's already frozen but keeps allocating memory, probably because incoming Mojo messages are building up without being processed. We discard the tab as a fallback to make sure it doesn't use too much memory.

    Alex Attar

    Done, thanks!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Joe Mason
    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: I5a00e44fb8b60351d9ad14a24ad3ded68fcc9be8
      Gerrit-Change-Number: 7583415
      Gerrit-PatchSet: 3
      Gerrit-Owner: Alex Attar <aat...@google.com>
      Gerrit-Reviewer: Alex Attar <aat...@google.com>
      Gerrit-Reviewer: Joe Mason <joenot...@google.com>
      Gerrit-Attention: Joe Mason <joenot...@google.com>
      Gerrit-Comment-Date: Wed, 18 Feb 2026 15:46:10 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Joe Mason <joenot...@google.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Joe Mason (Gerrit)

      unread,
      Feb 18, 2026, 4:18:43 PM (2 days ago) Feb 18
      to Alex Attar, Chromium LUCI CQ, chromium...@chromium.org, chrome-gr...@chromium.org, performance-m...@chromium.org
      Attention needed from Alex Attar

      Joe Mason voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Alex Attar
      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: I5a00e44fb8b60351d9ad14a24ad3ded68fcc9be8
      Gerrit-Change-Number: 7583415
      Gerrit-PatchSet: 3
      Gerrit-Owner: Alex Attar <aat...@google.com>
      Gerrit-Reviewer: Alex Attar <aat...@google.com>
      Gerrit-Reviewer: Joe Mason <joenot...@google.com>
      Gerrit-Attention: Alex Attar <aat...@google.com>
      Gerrit-Comment-Date: Wed, 18 Feb 2026 21:18:38 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Alex Attar (Gerrit)

      unread,
      Feb 19, 2026, 9:50:54 AM (yesterday) Feb 19
      to Chromium LUCI CQ, chromium...@chromium.org, chrome-gr...@chromium.org, performance-m...@chromium.org

      Alex Attar 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: I5a00e44fb8b60351d9ad14a24ad3ded68fcc9be8
      Gerrit-Change-Number: 7583415
      Gerrit-PatchSet: 3
      Gerrit-Owner: Alex Attar <aat...@google.com>
      Gerrit-Reviewer: Alex Attar <aat...@google.com>
      Gerrit-Reviewer: Joe Mason <joenot...@google.com>
      Gerrit-Comment-Date: Thu, 19 Feb 2026 14:50:47 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Feb 19, 2026, 9:53:46 AM (yesterday) Feb 19
      to Alex Attar, chromium...@chromium.org, chrome-gr...@chromium.org, performance-m...@chromium.org

      Chromium LUCI CQ submitted the change

      Change information

      Commit message:
      Add feature flag to disable tab discarding

      Introduces the `kDisableTabDiscarding` feature flag in the performance
      manager.

      When enabled, this flag causes `TabLifecycleUnit::Discard` to abort
      early, preventing the browser from proactively discarding tabs to save
      memory. This allows for measuring the impact of tab discarding on memory
      usage and user experience compared to other optimization strategies.
      Change-Id: I5a00e44fb8b60351d9ad14a24ad3ded68fcc9be8
      Reviewed-by: Joe Mason <joenot...@google.com>
      Commit-Queue: Alex Attar <aat...@google.com>
      Cr-Commit-Position: refs/heads/main@{#1587082}
      Files:
      • M chrome/browser/resource_coordinator/tab_lifecycle_unit.cc
      • M components/performance_manager/features.cc
      • M components/performance_manager/public/features.h
      Change size: S
      Delta: 3 files changed, 23 insertions(+), 0 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Joe Mason
      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: I5a00e44fb8b60351d9ad14a24ad3ded68fcc9be8
      Gerrit-Change-Number: 7583415
      Gerrit-PatchSet: 4
      Gerrit-Owner: Alex Attar <aat...@google.com>
      Gerrit-Reviewer: Alex Attar <aat...@google.com>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Joe Mason <joenot...@google.com>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages