Closed Bug 1903483 Opened 4 months ago Closed 4 months ago

Simplify nsFrameList::EmptyList() allocation

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

Details

Attachments

(1 file)

See the patch for details.

Bug 729519 [1] made the empty frame list be allocated in the
.rodata (read-only) section. However, the setup can be simplified.

To verify that sEmptyList is still allocated in the .rodata section, I used
the following steps on my local Linux build:

  1. Move nsFrameList.cpp in moz.build from UNIFIED_SOURCES to SOURCES.
  2. Run objdump -x $(OBJDIR)/layout/generic/nsFrameList.o | grep sEmptyList.
  3. Verify that the output sEmptyList has .rodata. The objdump output looks
    like this:
0000000000000038 g     O .rodata	0000000000000010 .hidden _ZN11nsFrameList10sEmptyListE

[1] Specifically, this commit:
https://hg.mozilla.org/mozilla-central/rev/c320c5821f98

Assignee: nobody → aethanyc
Status: NEW → ASSIGNED
Pushed by aethanyc@gmail.com: https://hg.mozilla.org/integration/autoland/rev/cdf8c138d840 Simplify nsFrameList::EmptyList() allocation. r=layout-reviewers,emilio
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: