diff options
| author | Vladimir Marko <vmarko@google.com> | 2019-04-10 11:40:01 +0100 | 
|---|---|---|
| committer | Vladimir Marko <vmarko@google.com> | 2019-05-08 08:19:28 +0000 | 
| commit | c6934e36d33ab402b7b51c78d46c319fc33e8ef3 (patch) | |
| tree | cec68ac35886015369bca93d5987889552327ac6 /runtime/class_table.h | |
| parent | 552ba72fce139aa2b0a80d1a2b920c5e8fadaf58 (diff) | |
Avoid some read barriers in ClassTable.
And clean up ClassTable.
Test: m test-art-host-gtest
Test: testrunner.py --host --interpreter
Bug: 119486698
Change-Id: Ie413bc5a56eb548352ae1fed0976b75c44e0c0d4
Diffstat (limited to 'runtime/class_table.h')
| -rw-r--r-- | runtime/class_table.h | 4 | 
1 files changed, 1 insertions, 3 deletions
| diff --git a/runtime/class_table.h b/runtime/class_table.h index 0b08041dbd3..26cd3ec2499 100644 --- a/runtime/class_table.h +++ b/runtime/class_table.h @@ -64,9 +64,7 @@ class ClassTable {        return *this;      } -    bool IsNull() const REQUIRES_SHARED(Locks::mutator_lock_) { -      return Read<kWithoutReadBarrier>() == nullptr; -    } +    bool IsNull() const REQUIRES_SHARED(Locks::mutator_lock_);      uint32_t Hash() const {        return MaskHash(data_.load(std::memory_order_relaxed)); | 
