gecko-dev/js/xpconnect/loader
Kris Maglione c0ccca38cd Bug 1455637: Use RefPtr rather than nsCOMPtr to avoid data race. r=mccr8
getter_AddRefs for nsCOMPtr does an AssertNoQueryNeeded check when its
temporary is destroyed. For the mReaderThread, this happens at a time when
control of the member variable has been handed over to the reader thread,
which causes a data race in the query needed check when the reader thread
shuts itself down and clears the member.

Switching to RefPtr solves this problem by removing the unnecessary check.

Differential Revision: https://phabricator.services.mozilla.com/D8135

--HG--
extra : rebase_source : 0532d152b6be57451e5729bf6b72e2056f3ed300
2018-10-09 13:22:28 -07:00
..
AutoMemMap.cpp Bug 1490600 - Always use braces for if/for/while statements in js/xpconnect/loader. r=kmag 2018-09-12 18:14:49 +00:00
AutoMemMap.h Bug 1477129: Part 2 - Fix SharedMap blob handling, and add tests. r=erahm 2018-07-20 14:44:00 -07:00
ChromeScriptLoader.cpp Bug 1487136 - Make OwningCompileOptions::setFile(JSContext*, const char*) MOZ_MUST_USE. r=kmag on fixing the one user requiring any changes, r=me on the obviously-justified attribute-addition 2018-08-28 14:54:20 -05:00
PScriptCache.ipdl
PrecompiledScript.h Bug 1461012: Add CC optimizations for PrecompiledScript objects. r=mccr8 2018-05-11 15:57:31 -07:00
ScriptCacheActors.cpp Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj 2018-06-01 10:45:27 +02:00
ScriptCacheActors.h
ScriptPreloader-inl.h Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj 2018-06-01 10:45:27 +02:00
ScriptPreloader.cpp Bug 1494827 - Add USS telemetry for content process startup. r=kmag 2018-09-27 18:13:05 -07:00
ScriptPreloader.h Bug 1416066 - Make ScriptPreloader wait for content-document-loaded to fire before writing cache for privileged processes. r=kmag,mconley 2018-06-22 17:29:08 -04:00
URLPreloader.cpp Bug 1465060 - Part 1: Fix warnings for std::move() use r=froydnj 2018-06-01 17:59:07 +02:00
URLPreloader.h Bug 1455637: Use RefPtr rather than nsCOMPtr to avoid data race. r=mccr8 2018-10-09 13:22:28 -07:00
XPCOMUtils.jsm Bug 1495723 - Add support for importing extra symbols to `defineLazyGlobalGetters`. r=kmag 2018-10-02 20:10:04 +00:00
moz.build Bug 1494827 - Add USS telemetry for content process startup. r=kmag 2018-09-27 18:13:05 -07:00
mozJSComponentLoader.cpp Bug 1491939 - Part 3: Centralize configuration of JS realm options from prefs. r=baku 2018-09-25 14:11:13 +00:00
mozJSComponentLoader.h Bug 1490600 - Always use braces for if/for/while statements in js/xpconnect/loader. r=kmag 2018-09-12 18:14:49 +00:00
mozJSLoaderUtils.cpp Bug 1490600 - Always use braces for if/for/while statements in js/xpconnect/loader. r=kmag 2018-09-12 18:14:49 +00:00
mozJSLoaderUtils.h
mozJSSubScriptLoader.cpp Bug 1491137 - Split the JS::Compile that takes const char*/size_t into JS::CompileUtf8 and JS::CompileLatin1 that assert |options.utf8| has consistent value, and a JS::Compile that delegates to one of those as appropriate -- a step toward having entirely separate compilation functions that do direct parsing of UTF-8 without inflating first. r=jandem 2018-09-12 20:48:44 -07:00
mozJSSubScriptLoader.h Bug 1416066 - Use XPConnect compilation scope for some non-cached local scripts with codebase principal when preload cache is enabled. r=kmag 2018-07-03 21:26:04 -04:00
script_cache.py Bug 1416066 - Update script_cache.py to support new version of startup script cache file. r=kmag 2018-06-26 14:02:22 -04:00