gecko-dev/mobile
Jamie Nicol 16ceeff184 Bug 1801526 - Use AtomicInteger for GeckoSurfaceTexture handle counter. r=geckoview-reviewers,calu
Currently we use a `static volatile int` as a monotonically
incrementing counter from which we calculate handles for
GeckoSurfaceTextures. During a previous patch, the code which reads
and increments this counter was moved out of a synchronized block,
meaning it can potentially race. We are now seeing crashes due to
attempting to allocate different GeckoSurfaceTextures with the same
handle, and this could be the cause.

To fix this, we replace the counter with an AtomicInt, which has an
atomic getAndIncrement() function.

Differential Revision: https://phabricator.services.mozilla.com/D162556
2022-11-22 08:32:31 +00:00
..
android Bug 1801526 - Use AtomicInteger for GeckoSurfaceTexture handle counter. r=geckoview-reviewers,calu 2022-11-22 08:32:31 +00:00
locales Bug 1760033 - Remove aboutReader.properties and its remaining strings as unused. r=Gijs,geckoview-reviewers,m_kato 2022-10-13 16:28:32 +00:00
.eslintrc.js