summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorRichard Uhler <ruhler@google.com>2019-07-01 15:21:44 +0100
committerRichard Uhler <ruhler@google.com>2019-07-01 15:21:44 +0100
commit74ee2994d3f41c226ae16b8dcc3afc55cce3ecf2 (patch)
tree0b3bcddc2b7c8887fd05b221979484ec1582bbda /opengl/tests/gl_basic/gl_basic.cpp
parent1d8b9961bc0f27ec7ad0f792d6d9f6ffe8cdf83c (diff)
Load rollback data in RollbackManagerServiceImpl constructor.
Load the rollback data from persistent storage in the RollbackManagerServiceImpl constructor instead of lazily. This way we don't have to remember to ensureRollbackDataLoaded every time we access the rollback data. In the vast majority of cases we expect there to be no data to load, so this shouldn't impact boot time. Change reloadPeristentData to block until the data has been reloaded. Consistently throw IllegalStateException in case of InterruptedException. There shouldn't be anyone calling Thread.interrupt() on the RollbackManagerHandlerThread. If it turns out someone does call Thread.interrupt() on the RollbackManagerHandlerThread, throwing IllegalStateException instead of ignoring the exception will help debug; then we can update the logic for handling InterruptedException in whatever way makes most sense. Test: atest RollbackTest Bug: 136241838 Change-Id: Ia5e73b0786b93064f8f80138d3e162b9613f2d55
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions