Closed
Bug 479624
Opened 15 years ago
Closed 15 years ago
Consider using JSAutoTempValueRooter instead of nsAutoGCRoot in nsJSContext::CallEventHandler
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla1.9.2a1
People
(Reporter: bent.mozilla, Assigned: bent.mozilla)
Details
(Keywords: fixed1.9.1, perf)
Attachments
(1 file)
1.12 KB,
patch
|
mrbkap
:
review+
jst
:
superreview+
jst
:
approval1.9.1+
|
Details | Diff | Splinter Review |
Found this while sharking a worker/video demo, CallEventHandler uses the runtime to root its target value unnecessarily. We can get away with sticking the target on the context's temporary root chain I think. This removes a bunch of locking as the runtime rooting grabs the runtime lock.
Attachment #363496 -
Flags: superreview?(jst)
Attachment #363496 -
Flags: review?(mrbkap)
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → bent.mozilla
Status: NEW → ASSIGNED
Updated•15 years ago
|
Attachment #363496 -
Flags: review?(mrbkap) → review+
Updated•15 years ago
|
Attachment #363496 -
Flags: superreview?(jst)
Attachment #363496 -
Flags: superreview+
Attachment #363496 -
Flags: approval1.9.1+
Comment 1•15 years ago
|
||
Comment on attachment 363496 [details] [diff] [review] Patch, v1 Trivial, and gives a perf boost (by avoiding locking when rooting). a=jst
Assignee | ||
Updated•15 years ago
|
Keywords: checkin-needed
Whiteboard: [needs 1.9.1 landing after trunk]
Comment 2•15 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/bba6f7ba14d2
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [needs 1.9.1 landing after trunk] → [needs 1.9.1 landing]
Target Milestone: --- → mozilla1.9.2a1
Comment 3•15 years ago
|
||
http://hg.mozilla.org/releases/mozilla-1.9.1/rev/afcb9c8383e1
Keywords: checkin-needed → fixed1.9.1
Whiteboard: [needs 1.9.1 landing]
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•