diff options
author | 2022-04-14 10:59:53 +0100 | |
---|---|---|
committer | 2022-04-21 11:01:45 +0000 | |
commit | 10137abcd09d51f263f56d64bb0b41fb4f8e5070 (patch) | |
tree | 5ed1f202dcaae81e60e24f32a3579731ba4a86f3 /runtime/class_table.h | |
parent | 86f1b3f30fa72c3f3e712c930c4444c51054b615 (diff) |
Move descriptor hashing to `mirror::Class`.
We may want to reuse the hashing for image classes which are
not closely related with the `ClassTable` where the hashing
was previously.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 181943478
Change-Id: Icf1b51085829509f58e7685dc1e9cf2b0583d107
Diffstat (limited to 'runtime/class_table.h')
-rw-r--r-- | runtime/class_table.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/runtime/class_table.h b/runtime/class_table.h index 3377f14b4a..212a7d6631 100644 --- a/runtime/class_table.h +++ b/runtime/class_table.h @@ -78,9 +78,6 @@ class ClassTable { return MaskHash(other) == Hash(); } - static uint32_t HashDescriptor(ObjPtr<mirror::Class> klass) - REQUIRES_SHARED(Locks::mutator_lock_); - template<ReadBarrierOption kReadBarrierOption = kWithReadBarrier> ObjPtr<mirror::Class> Read() const REQUIRES_SHARED(Locks::mutator_lock_); @@ -96,9 +93,6 @@ class ClassTable { static uint32_t Encode(ObjPtr<mirror::Class> klass, uint32_t hash_bits) REQUIRES_SHARED(Locks::mutator_lock_); - static uint32_t UpdateHashForProxyClass(uint32_t hash, ObjPtr<mirror::Class> proxy_class) - REQUIRES_SHARED(Locks::mutator_lock_); - // Data contains the class pointer GcRoot as well as the low bits of the descriptor hash. mutable Atomic<uint32_t> data_; static constexpr uint32_t kHashMask = kObjectAlignment - 1; |