gcc 3.2.2 generates bad code for nsRunnableMethod<T> the problem goes away if I change the member variable from a nsRefPtr<T> to a T* and use manual addref and release.
Created attachment 221839 [details] [diff] [review] v1 patch This should do the trick.
Attachment #221839 - Flags: review?(benjamin)
Status: ASSIGNED → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → FIXED
While people should check lxr / bonsai when they're about to make a change that "seems obvious and why didn't we do this in the first place", a comment near the NS_ADDREF and/or NS_RELEASE pointing to this bug to explain why we're not using a nsRefPtr there would be helpful, methinks.
You need to log in before you can comment on or make changes to this bug.