mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1199643 - Fix unsafe use of PerformanceGroup. r=jandem
--HG-- extra : transplant_source : %C6%29Z%EE%CE%01%9B%D6%E6%07%20%ADl1%A8%D8%C6%9E%05%06
This commit is contained in:
parent
2be1d3e641
commit
ac0d28842d
@ -333,7 +333,7 @@ IterPerformanceStats(JSContext* cx,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
js::AutoCompartment autoCompartment(cx, compartment);
|
js::AutoCompartment autoCompartment(cx, compartment);
|
||||||
PerformanceGroup* group = compartment->performanceMonitoring.getSharedGroup(cx);
|
mozilla::RefPtr<PerformanceGroup> group = compartment->performanceMonitoring.getSharedGroup(cx);
|
||||||
if (group->data.ticks == 0) {
|
if (group->data.ticks == 0) {
|
||||||
// Don't report compartments that have never been used.
|
// Don't report compartments that have never been used.
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user