Merge "Fix 2 instances of buggy double check locking on non-volatile fields."
This commit is contained in:
@@ -68,7 +68,7 @@ class NetworkStatsObservers {
|
|||||||
private final AtomicInteger mNextDataUsageRequestId = new AtomicInteger();
|
private final AtomicInteger mNextDataUsageRequestId = new AtomicInteger();
|
||||||
|
|
||||||
// Lazily instantiated when an observer is registered.
|
// Lazily instantiated when an observer is registered.
|
||||||
private Handler mHandler;
|
private volatile Handler mHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a wrapper that contains the caller context and a normalized request.
|
* Creates a wrapper that contains the caller context and a normalized request.
|
||||||
|
|||||||
Reference in New Issue
Block a user