summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorHugo Benichi <hugobenichi@google.com>2019-05-15 23:38:43 +0900
committerHugo Benichi <hugobenichi@google.com>2019-06-25 10:51:51 +0900
commit96dc0c118c23da269ccd68bb9beb0f56ab749b17 (patch)
treef3a5d8f1c3533b6a3e1ab49f143d7b63c3c841ab /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parentf15b5b38dbc59495dfdf5f2322b4f88e49c52488 (diff)
NetworkStats: Fix race condition causing system server crashes
NetworkStatsService uses an internal boolean to know when it has started for the purpose of preventing access to other internal variables before they are initialized. However that boolean is set to true in systemReady() non-atomically with respect to the initialization of the other variables it guards, which can cause the system server to crash. This patch fixes this concurrency bug by moving setting the internal boolean flag and the variable it guards in one atomic synchronized block. This patch also removes code checking if bandwidth control is enabled, because this is now always true. Bug: 132767673 Test: Compiled. Change-Id: Ia089b5767ce271d669879c975508654d4dd03429
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions