Go to file
Mathias Agopian 34cd9b72f1 Fix a race in SurfaceFlinger that could cause layers to be leaked forever.
The transaction flags were atomically read-and-cleared to determine if
a transaction was needed, in the later case, mStateLock was taken to
keep the current state still during the transaction. This left a small
window open, where a layer could be removed after the transaction flags
were checked but before the transaction was started holding the lock.
In that situation eTraversalNeeded would be set but only seen during the
next transaction cycle; however, because we're handling this transaction
(because of another flag) it will be commited, "loosing" the information
about the layer being removed -- so when the next transaction cycle due
to eTraversalNeeded starts, it won't notice that layers have been removed
and won't populated the ditchedLayers array.

Bug: 4483049

Change-Id: Ibb5989312f871339928ee1aa3f9567770d72969b
2011-05-23 16:13:20 -07:00
cmds KeyStore: Update the parameters of generating master keys. 2010-10-01 01:42:55 +08:00
include Fix [3513017] in lockscreen but showing empty launcher (live wallpaper) only 2011-03-07 16:56:16 -08:00
libs revert the surface purgatory list and dependent changes. 2011-03-09 17:00:41 -08:00
opengl egl: fixes for object refcounts 2011-02-22 18:15:08 -08:00
services/surfaceflinger Fix a race in SurfaceFlinger that could cause layers to be leaked forever. 2011-05-23 16:13:20 -07:00
vpn Phase 2 of test cleanup: moving test files from AndroidTests closer to their sources. 2010-01-29 13:35:51 -08:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
NOTICE Fix omission in NOTICE file. 2011-01-18 15:25:32 -08:00