Closed Bug 1874179 Opened 6 months ago Closed 6 months ago

Reuse previous buffer in JitRuntime::allocateIonOsrTempData if possible

Categories

(Core :: JavaScript Engine: JIT, task)

task

Tracking

()

RESOLVED FIXED
123 Branch
Tracking Status
firefox123 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This can get rid of a ton of malloc/free calls on workloads involving generators. See bug 1870552 comment 3.

Even on Speedometer 3 this gets rid of most of the allocations here, although there likely aren't enough calls for it to make a measurable difference.

This can get rid of a lot of malloc/free calls especially on workloads involving
generators or async functions, because we currently rely on OSR until we have
full Warp support for generators and async functions.

These malloc/free calls were showing up in a profile in bug 1870552.

Pushed by jdemooij@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c9373abd07b6
Try to reuse previous allocation in JitRuntime::allocateIonOsrTempData. r=iain
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch

2.6% improvement on AWFY-ARES6-Basic_steadyState and improvements on other sub-tests.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: