summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authortsaichristine <tsaichristine@google.com>2019-12-06 02:20:00 -0800
committertsaichristine <tsaichristine@google.com>2019-12-11 11:50:20 -0800
commit7192e0a8e0f68ee2dd7f0df923a07f91d158569b (patch)
tree9912be34ba6ff597816a3e7250d64b826a1187fe /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentf3d0c6f897f3dd96d79e0556b7a665e0b72fdf2c (diff)
Remove locks from StateManager to avoid race condition
A race condition is introduced in ValueMetric due to StateManager's locks. When StateManager processes a log event, it notifies all listeners (metric producers) if a state has changed. In ValueMetric, a state change eventually requires querying through a Statemanager function that is held by the same lock as StateManager::onLogEvent. To fix this, we can remove the locks in StateManager and use the locks in StatsLogProcessor to protect StateManager objects. However, we have to ensure that the path to StateManager function calls all originate from StatsLogProcessor. Test: bit statsd_test:* Bug: 145838132 Change-Id: Ie5b747961ffa4cd5c78e86fa5f78472e29a972dd
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions