diff options
| author | 2019-11-11 17:57:20 -0800 | |
|---|---|---|
| committer | 2019-11-11 23:01:49 -0800 | |
| commit | 7584836d4ac4ecc0cf8166491b84533e67f300f2 (patch) | |
| tree | bdba9301c1e934088b25594372afd5f8e4a7169b /libs/gui/ConsumerBase.cpp | |
| parent | e00dd195c59f5511e64d8ac28de8ed88c5990f3b (diff) | |
SF: Register layers on first strong reference
In ag/9549429, LayerHistory stores a wp<Layer> on Layer construction, at
which point RefBase::mStrong is not yet 1. Since wp<T>::promote succeeds
in that case, LayerHistory may concurrently create a sp<Layer> with sole
ownership on the main thread while checking for expired weak references,
resulting in premature layer destruction.
Bug: 144218964
Test: None (sporadic crash)
Change-Id: Ia7c89a090920588b216b719fce36c9f64a126e81
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions