diff options
author | 2022-03-31 12:39:21 +0000 | |
---|---|---|
committer | 2022-04-04 08:21:08 +0000 | |
commit | 65258db896c8270873f362d95204336d7d1e333d (patch) | |
tree | c3975d3849fe798dfae91343e48d4c06369d8930 /runtime/class_table.h | |
parent | 4ebfcac9d1e32c84ebe583f1d9c9b532a1b1c05d (diff) |
Faster class descriptor hashing.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 181943478
Change-Id: I94612e8229b6d21abd51ade36ed88c1b5db77764
Diffstat (limited to 'runtime/class_table.h')
-rw-r--r-- | runtime/class_table.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/class_table.h b/runtime/class_table.h index 17b87866b7..4c5fc62b2d 100644 --- a/runtime/class_table.h +++ b/runtime/class_table.h @@ -96,6 +96,9 @@ 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; |