Open Bug 1277711 Opened 4 years ago Updated 2 years ago

use relaxed memory synchronization for threadsafe refcounting of immutable objects such as Atoms


(Core :: XPCOM, defect, P3)




Tracking Status
firefox49 --- affected


(Reporter: dbaron, Unassigned)



(Keywords: perf)

Bug 1275755 made Atom reference counting threadsafe again.

In bug 1275755 comment 36 I pointed out that since atoms are immutable, we could perhaps switch to using relaxed memory synchronization for reference counting of atoms, since I believe that the reasons that require acquire and release synchronization (see bug 1277709) do not apply to objects that are immutable.

On the other hand, apparently Bobby has some plans for Atoms and servo-integration that might make atoms not be immutable.
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.