Closed Bug 1639398 Opened 4 years ago Closed 4 years ago

VRManager allocated in every process even though it can't be accessed

Categories

(Core :: WebVR, defect)

defect

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

References

(Blocks 1 open bug)

Details

(Keywords: perf-alert, Whiteboard: [overhead:76k])

Attachments

(1 file)

I was looking through a DMD report for a content process, and one of the unreported blocks was something that looks like VRManager. This structure is quite large, about 77,824 bytes. Also, VRManager::Get() asserts if it is called in a process that isn't either the parent process or the GPU process, so we shouldn't allocate it except in those processes.

See Also: → 1639400

Yes. You are right, we need fix it.

The severity field is not set for this bug.
:kip, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(kgilbert)
Assignee: nobody → continuation
Severity: -- → S3
Flags: needinfo?(kgilbert)

This avoids about 77kb of content process overhead.

Pushed by amccreight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f2f38d6f5b44
Only create VRManager in processes where it can be used. r=daoshengmu,kip
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79

== Change summary for alert #26168 (as of Tue, 09 Jun 2020 12:16:31 GMT) ==

Improvements:

5% Base Content Heap Unclassified windows10-64-shippable opt 1,641,355.67 -> 1,564,418.00
5% Base Content Heap Unclassified windows10-64-shippable opt 1,632,308.00 -> 1,557,502.67

For up to date results, see: https://treeherder.mozilla.org/perf.html#/alerts?id=26168

Keywords: perf-alert
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: