[blink] Switch wtf/allocator/* to "blink" namespace [chromium/src : main]

0 views
Skip to first unread message

Helmut Januschka (Gerrit)

unread,
Jun 10, 2025, 7:04:33 AMJun 10
to Helmut Januschka, Olga Gerchikov, Nate Chapin, Dirk Schulze, Stephen Chenney, Kentaro Hara, Hongchan Choi, Hiroki Nakagawa, Alexis Menard, Raphael Kubo da Costa, Kent Tamura, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-revie...@chromium.org, blink-revie...@chromium.org, loading-re...@chromium.org, kouhe...@chromium.org, fuzzin...@chromium.org, shimazu+se...@chromium.org, horo+...@chromium.org, gavinp...@chromium.org, kinuko+ser...@chromium.org, edgesto...@microsoft.com, ricea...@chromium.org, loading-rev...@chromium.org, servicewor...@chromium.org, scheduler-...@chromium.org, dmurph+watchi...@chromium.org, loading...@chromium.org, fmalit...@chromium.org, chikamu...@chromium.org, drott+bl...@chromium.org, mbarowsky+watc...@chromium.org, yhiran...@chromium.org, blink-rev...@chromium.org, blink-re...@chromium.org, fserb...@chromium.org, cblume+im...@chromium.org, oilpan-rev...@chromium.org, jbroma...@chromium.org, blink-reviews-p...@chromium.org, devtools-re...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org
Attention needed from Kent Tamura

Helmut Januschka added 5 comments

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Helmut Januschka . resolved

@tk...@chromium.org ended up with 66 files, but no more "using"
should we continue?

File third_party/blink/renderer/platform/wtf/allocator/allocator.h
Line 134, Patchset 1:namespace WTF {
using blink::NotNullTag;
namespace internal {
using blink::internal::__thisIsHereToForceASemicolonAfterThisMacro;
} // namespace internal
Kent Tamura . resolved

Can we avoid to add these `using`? Do we have to update too many files if we drop them?

Helmut Januschka

done, 15 files.

File third_party/blink/renderer/platform/wtf/allocator/partition_allocator.h
Line 129, Patchset 1:namespace WTF {
using blink::PartitionAllocator;
} // namespace WTF
Kent Tamura . resolved

Can we avoid to add this `using`? Do we have to update too many files if we drop it?

Helmut Januschka

11 files

File third_party/blink/renderer/platform/wtf/allocator/partitions.h
Line 122, Patchset 1:namespace WTF {
using blink::Partitions;
} // namespace WTF
Kent Tamura . resolved

Can we avoid to add this `using`? Do we have to update too many files if we drop it?

Helmut Januschka

done, alot files

File third_party/blink/renderer/platform/wtf/forward.h
Line 37, Patchset 1:using blink::PartitionAllocator;
Kent Tamura . resolved

Can we avoid to add this `using`? Do we have to update too many files if we drop it?

Helmut Januschka

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Kent Tamura
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: I3ad18fd25950242c5cc75cba9f2ac0a9a1a68804
Gerrit-Change-Number: 6624568
Gerrit-PatchSet: 2
Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
Gerrit-CC: Alexis Menard <alexis...@intel.com>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Hiroki Nakagawa <nhi...@chromium.org>
Gerrit-CC: Hongchan Choi <hong...@chromium.org>
Gerrit-CC: Kentaro Hara <har...@chromium.org>
Gerrit-CC: Michael Wilson <mjwi...@chromium.org>
Gerrit-CC: Nate Chapin <jap...@chromium.org>
Gerrit-CC: Olga Gerchikov <gerc...@microsoft.com>
Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: Kent Tamura <tk...@chromium.org>
Gerrit-Comment-Date: Tue, 10 Jun 2025 11:04:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Kent Tamura <tk...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Helmut Januschka (Gerrit)

unread,
Jun 10, 2025, 7:30:08 AMJun 10
to Helmut Januschka, Olga Gerchikov, Nate Chapin, Dirk Schulze, Stephen Chenney, Kentaro Hara, Hongchan Choi, Hiroki Nakagawa, Alexis Menard, Raphael Kubo da Costa, Kent Tamura, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-revie...@chromium.org, blink-revie...@chromium.org, loading-re...@chromium.org, kouhe...@chromium.org, fuzzin...@chromium.org, shimazu+se...@chromium.org, horo+...@chromium.org, gavinp...@chromium.org, kinuko+ser...@chromium.org, edgesto...@microsoft.com, ricea...@chromium.org, loading-rev...@chromium.org, servicewor...@chromium.org, scheduler-...@chromium.org, dmurph+watchi...@chromium.org, loading...@chromium.org, fmalit...@chromium.org, chikamu...@chromium.org, drott+bl...@chromium.org, mbarowsky+watc...@chromium.org, yhiran...@chromium.org, blink-rev...@chromium.org, blink-re...@chromium.org, fserb...@chromium.org, cblume+im...@chromium.org, oilpan-rev...@chromium.org, jbroma...@chromium.org, blink-reviews-p...@chromium.org, devtools-re...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org
Attention needed from Kent Tamura

Helmut Januschka added 1 comment

Patchset-level comments
Helmut Januschka . unresolved

@tk...@chromium.org ended up with 66 files, but no more "using"
should we continue?

Helmut Januschka

ahh wanted to keep this open

Open in Gerrit

Related details

Attention is currently required from:
  • Kent Tamura
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    Gerrit-Comment-Date: Tue, 10 Jun 2025 11:29:54 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Helmut Januschka <hel...@januschka.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Kent Tamura (Gerrit)

    unread,
    Jun 10, 2025, 8:41:54 PMJun 10
    to Helmut Januschka, Olga Gerchikov, Nate Chapin, Dirk Schulze, Stephen Chenney, Kentaro Hara, Hongchan Choi, Hiroki Nakagawa, Alexis Menard, Raphael Kubo da Costa, Kent Tamura, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-revie...@chromium.org, blink-revie...@chromium.org, loading-re...@chromium.org, kouhe...@chromium.org, fuzzin...@chromium.org, shimazu+se...@chromium.org, horo+...@chromium.org, gavinp...@chromium.org, kinuko+ser...@chromium.org, edgesto...@microsoft.com, ricea...@chromium.org, loading-rev...@chromium.org, servicewor...@chromium.org, scheduler-...@chromium.org, dmurph+watchi...@chromium.org, loading...@chromium.org, fmalit...@chromium.org, chikamu...@chromium.org, drott+bl...@chromium.org, mbarowsky+watc...@chromium.org, yhiran...@chromium.org, blink-rev...@chromium.org, blink-re...@chromium.org, fserb...@chromium.org, cblume+im...@chromium.org, oilpan-rev...@chromium.org, jbroma...@chromium.org, blink-reviews-p...@chromium.org, devtools-re...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org
    Attention needed from Helmut Januschka

    Kent Tamura added 3 comments

    Patchset-level comments
    Helmut Januschka . unresolved

    @tk...@chromium.org ended up with 66 files, but no more "using"
    should we continue?

    Helmut Januschka

    ahh wanted to keep this open

    Kent Tamura

    IMO, a CL touching 100+ files should be split.
    This CL touches less-than-100 files, however I recommend to split this to one for `allocator.h`, one for `partition_allocator.h`, and one for `partitions.h`.

    https://issues.chromium.org/issues/422768753#comment1
    > 1. Choose a **single** header in platform/wtf/

    File third_party/blink/renderer/bindings/core/v8/serialization/serialized_script_value.h
    Line 357, Patchset 2 (Latest): void operator()(uint8_t* buffer) { blink::Partitions::BufferFree(buffer); }
    Kent Tamura . unresolved

    We should remove `blink::` prefix because this code is in the "blink" namespace.
    Please re-check all the files in the CL for unnecessary `blink::` prefixes.

    File third_party/blink/renderer/platform/wtf/allocator/allocator.h
    Line 16, Patchset 2 (Parent):using base::NotNullTag;
    Kent Tamura . unresolved

    This CL **removes** `WTF::NotNullTag` instead of moving it to `blink` namespace.

    It's a reasonable change, but not in the scope of crbug.com/422768753, so if you'd like to remove `WTF::NotNullTag`, it should be done in a separated CL.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Helmut Januschka
    Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
    Gerrit-Comment-Date: Wed, 11 Jun 2025 00:41:25 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Helmut Januschka (Gerrit)

    unread,
    Jun 11, 2025, 10:34:34 AMJun 11
    to Helmut Januschka, Olga Gerchikov, Nate Chapin, Dirk Schulze, Stephen Chenney, Kentaro Hara, Hongchan Choi, Hiroki Nakagawa, Alexis Menard, Raphael Kubo da Costa, Kent Tamura, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-revie...@chromium.org, blink-revie...@chromium.org, loading-re...@chromium.org, kouhe...@chromium.org, fuzzin...@chromium.org, shimazu+se...@chromium.org, horo+...@chromium.org, gavinp...@chromium.org, kinuko+ser...@chromium.org, edgesto...@microsoft.com, ricea...@chromium.org, loading-rev...@chromium.org, servicewor...@chromium.org, scheduler-...@chromium.org, dmurph+watchi...@chromium.org, loading...@chromium.org, fmalit...@chromium.org, chikamu...@chromium.org, drott+bl...@chromium.org, mbarowsky+watc...@chromium.org, yhiran...@chromium.org, blink-rev...@chromium.org, blink-re...@chromium.org, fserb...@chromium.org, cblume+im...@chromium.org, oilpan-rev...@chromium.org, jbroma...@chromium.org, blink-reviews-p...@chromium.org, devtools-re...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org
    Attention needed from Kent Tamura

    Helmut Januschka added 3 comments

    Patchset-level comments
    Helmut Januschka . unresolved

    @tk...@chromium.org ended up with 66 files, but no more "using"
    should we continue?

    Helmut Januschka

    ahh wanted to keep this open

    Kent Tamura

    IMO, a CL touching 100+ files should be split.
    This CL touches less-than-100 files, however I recommend to split this to one for `allocator.h`, one for `partition_allocator.h`, and one for `partitions.h`.

    https://issues.chromium.org/issues/422768753#comment1
    > 1. Choose a **single** header in platform/wtf/

    Helmut Januschka

    I'm having a hard time splitting this up (especially the "single header per CL" requirement).

    The NotNullTag was straightforward: http://crrev.com/c/6632732, but I'm struggling with the others.
    When trying to isolate them, I always end up in a "this-depends-on-this" nightmare.

    Could we tackle headers on a per-component basis instead? Like handling /wtf/allocator/* (and everything that throws errors) as one unit? Or do you have any suggestions for how to handle this without adding tons of "using" statements in the split CLs?

    File third_party/blink/renderer/bindings/core/v8/serialization/serialized_script_value.h
    Line 357, Patchset 2 (Latest): void operator()(uint8_t* buffer) { blink::Partitions::BufferFree(buffer); }
    Kent Tamura . resolved

    We should remove `blink::` prefix because this code is in the "blink" namespace.
    Please re-check all the files in the CL for unnecessary `blink::` prefixes.

    Helmut Januschka

    Done

    File third_party/blink/renderer/platform/wtf/allocator/allocator.h
    Line 16, Patchset 2 (Parent):using base::NotNullTag;
    Kent Tamura . resolved

    This CL **removes** `WTF::NotNullTag` instead of moving it to `blink` namespace.

    It's a reasonable change, but not in the scope of crbug.com/422768753, so if you'd like to remove `WTF::NotNullTag`, it should be done in a separated CL.

    Helmut Januschka
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Kent Tamura
    Gerrit-Attention: Kent Tamura <tk...@chromium.org>
    Gerrit-Comment-Date: Wed, 11 Jun 2025 14:34:19 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Kent Tamura <tk...@chromium.org>
    Comment-In-Reply-To: Helmut Januschka <hel...@januschka.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Kent Tamura (Gerrit)

    unread,
    Jun 11, 2025, 6:18:39 PMJun 11
    to Helmut Januschka, Olga Gerchikov, Nate Chapin, Dirk Schulze, Stephen Chenney, Kentaro Hara, Hongchan Choi, Hiroki Nakagawa, Alexis Menard, Raphael Kubo da Costa, Kent Tamura, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-revie...@chromium.org, blink-revie...@chromium.org, loading-re...@chromium.org, kouhe...@chromium.org, fuzzin...@chromium.org, shimazu+se...@chromium.org, horo+...@chromium.org, gavinp...@chromium.org, kinuko+ser...@chromium.org, edgesto...@microsoft.com, ricea...@chromium.org, loading-rev...@chromium.org, servicewor...@chromium.org, scheduler-...@chromium.org, dmurph+watchi...@chromium.org, loading...@chromium.org, fmalit...@chromium.org, chikamu...@chromium.org, drott+bl...@chromium.org, mbarowsky+watc...@chromium.org, yhiran...@chromium.org, blink-rev...@chromium.org, blink-re...@chromium.org, fserb...@chromium.org, cblume+im...@chromium.org, oilpan-rev...@chromium.org, jbroma...@chromium.org, blink-reviews-p...@chromium.org, devtools-re...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org
    Attention needed from Helmut Januschka

    Kent Tamura added 1 comment

    Patchset-level comments
    Helmut Januschka . unresolved

    @tk...@chromium.org ended up with 66 files, but no more "using"
    should we continue?

    Helmut Januschka

    ahh wanted to keep this open

    Kent Tamura

    IMO, a CL touching 100+ files should be split.
    This CL touches less-than-100 files, however I recommend to split this to one for `allocator.h`, one for `partition_allocator.h`, and one for `partitions.h`.

    https://issues.chromium.org/issues/422768753#comment1
    > 1. Choose a **single** header in platform/wtf/

    Helmut Januschka

    I'm having a hard time splitting this up (especially the "single header per CL" requirement).

    The NotNullTag was straightforward: http://crrev.com/c/6632732, but I'm struggling with the others.
    When trying to isolate them, I always end up in a "this-depends-on-this" nightmare.

    Could we tackle headers on a per-component basis instead? Like handling /wtf/allocator/* (and everything that throws errors) as one unit? Or do you have any suggestions for how to handle this without adding tons of "using" statements in the split CLs?

    Kent Tamura

    Would you try:
    1. Make a CL to move wtf/allocator/allocator.h to blink namespace, ask for review, and merge
    2. Make a CL to move wtf/allocator/partition_allocator.h to blink namespace, ask for review, and merge
    3. Make a CL to move wtf/allocator/partitions.h to blink namespace, ask for review, and merge

    If it's difficult to follow these steps, it's ok to make a single CL for these three headers.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Helmut Januschka
    Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
    Gerrit-Comment-Date: Wed, 11 Jun 2025 22:17:56 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Helmut Januschka (Gerrit)

    unread,
    2:58 AM (6 hours ago) 2:58 AM
    to Helmut Januschka, Olga Gerchikov, Nate Chapin, Dirk Schulze, Stephen Chenney, Kentaro Hara, Hongchan Choi, Hiroki Nakagawa, Menard, Alexis, Raphael Kubo da Costa, Kent Tamura, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, blink-revie...@chromium.org, blink-revie...@chromium.org, loading-re...@chromium.org, kouhe...@chromium.org, fuzzin...@chromium.org, shimazu+se...@chromium.org, horo+...@chromium.org, gavinp...@chromium.org, kinuko+ser...@chromium.org, edgesto...@microsoft.com, ricea...@chromium.org, loading-rev...@chromium.org, servicewor...@chromium.org, scheduler-...@chromium.org, dmurph+watchi...@chromium.org, loading...@chromium.org, fmalit...@chromium.org, chikamu...@chromium.org, drott+bl...@chromium.org, mbarowsky+watc...@chromium.org, yhiran...@chromium.org, blink-rev...@chromium.org, blink-re...@chromium.org, fserb...@chromium.org, cblume+im...@chromium.org, oilpan-rev...@chromium.org, jbroma...@chromium.org, blink-reviews-p...@chromium.org, devtools-re...@chromium.org, apavlo...@chromium.org, blink-re...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org

    Helmut Januschka abandoned this change

    Related details

    Attention set is empty
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • 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: abandon
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I3ad18fd25950242c5cc75cba9f2ac0a9a1a68804
      Gerrit-Change-Number: 6624568
      Gerrit-PatchSet: 2
      Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
      Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
      Gerrit-CC: Hiroki Nakagawa <nhi...@chromium.org>
      Gerrit-CC: Hongchan Choi <hong...@chromium.org>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages