Closed
Bug 314285
Opened 19 years ago
Closed 9 years ago
Consider using non-threadsafe addref/release for MAIN_THREAD_ONLY stuff
Categories
(Core :: XPConnect, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 942528
People
(Reporter: bzbarsky, Unassigned)
References
Details
(Keywords: perf)
XPCWrappedNative implements threadsafe addref and release. If we're dealing with something which has the MAIN_THREAD_ONLY classinfo flag, couldn't we get away with a non-threadsafe addref/release impl? This would mostly make QI of the XPCWrappedNative faster -- right now almost half the time in that QI impl is spent in PR_AtomicIncrement...
Updated•18 years ago
|
Assignee: dbradley → nobody
Updated•18 years ago
|
QA Contact: pschwartau → xpconnect
Comment 1•9 years ago
|
||
I made XPCWrappedNative use non-threadsafe-refcounting in bug 942528. (Of course, it was safe to do that earlier when XPConnect was made single-threaded.)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•