diff options
author | 2022-09-15 07:54:46 -0700 | |
---|---|---|
committer | 2022-09-16 13:32:38 -0700 | |
commit | 6839927f9fac02a048c73e63a4a988cd7be118b9 (patch) | |
tree | fcdf074aa119afc37d9fecee01c326dbbcb810f0 /services/surfaceflinger/RegionSamplingThread.cpp | |
parent | 3a214d74c55cc6e5b0fcc5a8eb4df49a1b3f135e (diff) |
SF: Fix a sporadic crash during multi-display boot
The Scheduler is created when the first commit adds the primary display,
and accessed whenever a commit adds a physical display. Transactions are
ordered by display token, which is an arbitrary address.
In a multi-display boot, the addition of the primary display could be
reordered after other displays, causing a crash when the Scheduler is
accessed before creation.
As a short-term workaround until Scheduler initialization is decoupled
from commit of display transactions, commit the primary display first.
Bug: 244442572
Test: Boot
Change-Id: I62c4b5299de329a02e60d5f2529ed49907d74415
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions