Created attachment 8660003 [details] TSan stack trace The attached logfile shows a thread/data race detected by TSan (ThreadSanitizer). * Specific information about this bug Like bug 1204042, this is another race where we're reading something on the socket thread but that is getting written on the main thread. It looks like this pref was added in bug 1131557; I assume the pref was there in case we needed to quickly back out the new behavior. But the new behavior has had multiple releases of bake time...can we just remove the pref entirely? If we can't remove the pref, I guess we could make this an Atomic<> member... * General information about TSan, data races, etc. Typically, races reported by TSan are not false positives, but it is possible that the race is benign. Even in this case though, we should try to come up with a fix unless this would cause unacceptable performance issues. Also note that seemingly benign races can possibly be harmful (also depending on the compiler and the architecture) . If the bug cannot be fixed, then this bug should be used to either make a compile-time annotation for blacklisting or add an entry to the runtime blacklist.  http://software.intel.com/en-us/blogs/2013/01/06/benign-data-races-what-could-possibly-go-wrong  _How to miscompile programs with "benign" data races_: https://www.usenix.org/legacy/events/hotpar11/tech/final_files/Boehm.pdf
I think this can probably be removed now. to dragana for comment and patch.
We can remove the pref.
Created attachment 8660758 [details] [diff] [review] bug_1204043.patch
Hi, this failed to apply: renamed 1204043 -> bug_1204043.patch applying bug_1204043.patch patching file netwerk/base/nsSocketTransportService2.h Hunk #1 FAILED at 230 1 out of 1 hunks FAILED -- saving rejects to file netwerk/base/nsSocketTransportService2.h.rej patch failed, unable to continue (try -v) patch failed, rejects left in working directory errors during apply, please fix and refresh bug_1204043.patch maybe this needs a rebase ?
Created attachment 8661185 [details] [diff] [review] bug_1204043.patch rebased