зеркало из https://github.com/mozilla/gecko-dev.git
16ceeff184
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 |
||
---|---|---|
.. | ||
android | ||
locales | ||
.eslintrc.js |