Closed Bug 1934972 Opened 2 months ago Closed 2 months ago

Try to remove CodeGenerator::zoneStubsToReadBarrier_

Categories

(Core :: JavaScript Engine: JIT, task)

task

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

Details

(Whiteboard: [sp3])

Attachments

(3 files)

zoneStubsToReadBarrier_ is used to perform read-barriers after off-thread compilation for the per-zone regexp/string stubs used by the compilation. It's hard to reason about how this interacts with major GCs happening on the main thread if these GCs don't cancel off-thread compilations.

It would be simpler to get these stubs at the start of the compilation so we can store strong references to them in the Warp snapshot.

Flags: needinfo?(jdemooij)

Rename StubIndex to StubKind and make it an enum class.

Add a using declaration for the EnumeratedArray. This will be used more in a
later patch.

Assignee: nobody → jdemooij
Status: NEW → ASSIGNED

zoneStubsToReadBarrier_ was used to delay read-barriers for the JitZone stubs
for off-thread Ion compilations. This only works well if we cancel Ion compilations
on GC.

This patch changes this to instead record used stubs in the Warp snapshot that we trace
for off-thread compilations.

We also no longer generate the string-concat stub eagerly but only if the CacheIR has
a string-concat op.

Attachment #9441887 - Attachment description: Bug 1934972 - Store used JitZone stubs in WarpSnapshot, remove zoneStubsToReadBarrier_. r?iain!,jonco! → Bug 1934972 part 3 - Store used JitZone stubs in WarpSnapshot, remove zoneStubsToReadBarrier_. r?iain!,jonco!
Flags: needinfo?(jdemooij)
Blocks: 1935377
Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/58902759f620 part 1 - Tidy up JitZone stubs a bit. r=iain https://hg.mozilla.org/integration/autoland/rev/4810dda31f44 part 2 - Pass the WarpSnapshot to CodeGenerator. r=iain https://hg.mozilla.org/integration/autoland/rev/af214c46fc64 part 3 - Store used JitZone stubs in WarpSnapshot, remove zoneStubsToReadBarrier_. r=iain,jonco
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch

tiny regression:

5% on kraken-imaging-gaussian-blur only on Windows.

Whiteboard: [sp3]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: