Closed Bug 868785 Opened 12 years ago Closed 12 years ago

Fix rooting hazards in TestStartupCache.cpp

Categories

(Toolkit :: Startup and Profile System, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla23

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file)

Attached patch Patch (v1)Splinter Review
No description provided.
Attachment #745595 - Flags: review?(tschneidereit)
Comment on attachment 745595 [details] [diff] [review] Patch (v1) Review of attachment 745595 [details] [diff] [review]: ----------------------------------------------------------------- ::: startupcache/test/TestStartupCache.cpp @@ +438,5 @@ > return NS_ERROR_UNEXPECTED; > } > > for (uint32_t i = 0; i < before_size; ++i) { > + JS::RootedValue before_num(cx), after_num(cx); Nit: Rooted* should be declared outside of loops to reduce their overhead. Obviously not important at all here, though ...
Attachment #745595 - Flags: review?(tschneidereit) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: