Merge "Fix 2 instances of buggy double check locking on non-volatile fields."

This commit is contained in:
Ian Rogers
2016-05-19 05:19:28 +00:00
committed by Android (Google) Code Review

View File

@@ -68,7 +68,7 @@ class NetworkStatsObservers {
private final AtomicInteger mNextDataUsageRequestId = new AtomicInteger();
// 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.