Closed Bug 1687335 Opened 4 years ago Closed 4 years ago

Remove padding from Chunk data structures

Categories

(Core :: JavaScript: GC, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: jonco, Assigned: jonco)

Details

Attachments

(2 files)

There are a couple of instances of padding used in the Chunk data structures are are almost certainly there for historical reasons that aren't relevant any more. We should remove them.

Remove the unnecessary padding. This lets us have one more arena per chunk on 32 bit Android builds with the small chunk size.

Assignee: nobody → jcoppeard
Status: NEW → ASSIGNED

The ChunkLocation field is not necessary because we can tell the different between nursery chunks and tenured heap chunks based on whether the storebuffer pointer is null or not. This patch removes the field.

Jan, is there any impact on the generated JIT code for doing it this way?

This allows us to get one more arena per chunk on 64 bit systems with the small chunk size.

Depends on D102392

Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/64fc2e7b897a Remove padding from Chunk data structures r=sfink https://hg.mozilla.org/integration/autoland/rev/f13d6fb14d1e Remove chunk location field and use storebuffer pointer to determine which chunks are in the nursery r=sfink,jandem
Severity: -- → N/A
Priority: -- → P1
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: