gecko-dev/mobile/android/geckoview
Michael Comella 99b496e846 Bug 1756251 - fix concurrency bug in GeckoJavaSampler.isProfilerActive. r=geckoview-reviewers,julienw,agi
Concurrency bug: this method accesses mutable state but is not synchronized so
the caller isn't guaranteed to see the latest values.

We fix it by using an AtomicReference. This slightly complicates the thread
policy (which is to otherwise synchronize access to mutable state) but avoids
the increased contention that could come from using synchronized for
consistency.

This is the only concurrency bug I found throughout my thread safety
documentation.

Differential Revision: https://phabricator.services.mozilla.com/D139199
2022-02-24 19:11:59 +00:00
..
src Bug 1756251 - fix concurrency bug in GeckoJavaSampler.isProfilerActive. r=geckoview-reviewers,julienw,agi 2022-02-24 19:11:59 +00:00
api.txt Bug 1754244 - Remove deprecated enterpiseRootsEnabled. r=calu 2022-02-08 18:04:26 +00:00
build.gradle Bug 1749652 - Actually publish javadoc jar contents. r=calu 2022-01-13 15:58:52 +00:00
checkstyle-suppressions.xml Bug 1697844 - Re-enable checkstyle for org.mozilla.gecko. r=esawin 2021-03-24 20:06:27 +00:00
checkstyle.xml Bug 1571899 - Use google-java-format via spotless to enforce Java formatting. r=ahal,owlish 2021-10-11 18:11:55 +00:00
proguard-rules.txt