Closed Bug 1595500 Opened 5 years ago Closed 5 years ago

Running JS reftests creates ~1200 globals on startup

Categories

(Testing :: Reftest, enhancement)

Version 3
enhancement
Not set
normal

Tracking

(firefox72 fixed)

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: jonco, Assigned: jonco)

Details

Attachments

(1 file)

I ran the JS reftests with some logging inserted and found that we create nearly 1200 globals on startup. This seems excessive.

It turns out that we create a sandbox for every manifest file read:

https://searchfox.org/mozilla-central/source/layout/tools/reftest/manifest.jsm#63

These sandboxes are not always uses, so we should be able to get away with creating them on demand.

The patch reduces the number of sandboxes created to around 200.

Assignee: nobody → jcoppeard
Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9776aa076f9a
Create reftest sandboxes on demand since they are often not required r=jmaher
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: