OSDN Git Service

Initialize art::Atomic's value to 0.
authorDan Albert <danalbert@google.com>
Tue, 12 Aug 2014 18:48:34 +0000 (11:48 -0700)
committerIan Rogers <irogers@google.com>
Thu, 14 Aug 2014 01:58:55 +0000 (18:58 -0700)
commitf0a37663309e468f11858bffa3221e7223cf577d
tree8083aafd260f418b5558621c26eabfcf056e6a45
parent63c051a540e6dfc806f656b88ac3a63e99395429
Initialize art::Atomic's value to 0.

art::Mutex and art::ConditionVariable were DCHECKing that the value was
zero on entering the constructor without ever initializing the value.
Since 0 is a sensible default, make it the default for art::Atomic
rather than initializing for each use.

Bug: 16301104

(cherry picked from commit 6a3f8d93ddf09b5f6667820089e488958cba8361)

Change-Id: Iab69bccac9f904111a72eff8162c7f0ca979a08a
runtime/atomic.h