summaryrefslogtreecommitdiff
path: root/runtime/art_method.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2025-02-05 11:36:53 +0000
committer VladimĂ­r Marko <vmarko@google.com> 2025-02-05 07:41:24 -0800
commitef5054636ca350b94adef6906d2d51992ca4531c (patch)
tree63db24be4c8530617bfda39dd5085e5e7bd127fa /runtime/art_method.h
parenta7045d8fd8a38b447b176e93c81765540863c1c9 (diff)
Refactor `ImTable::GetImtIndex()`.
Make it easier to calculate the IMT index without an actual `ArtMethod` in preparation for a significant refactoring of `ClassLinker::LoadClass()`. Update documentation of `ArtMethod::imt_index_` which is actually unused for abstract non-interface methods. Also reorder code in `ClassLinker` without any modification to make it easier to compare the differences in the upcoming refactoring. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 329196666 Change-Id: Ic71ff323ea92325958d59536e83ab70d057b94df
Diffstat (limited to 'runtime/art_method.h')
-rw-r--r--runtime/art_method.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/art_method.h b/runtime/art_method.h
index ee11328385..186ff7e45e 100644
--- a/runtime/art_method.h
+++ b/runtime/art_method.h
@@ -1126,8 +1126,9 @@ class EXPORT ArtMethod final {
// Non-abstract methods: The hotness we measure for this method. Not atomic,
// as we allow missing increments: if the method is hot, we will see it eventually.
uint16_t hotness_count_;
- // Abstract methods: IMT index.
+ // Abstract interface methods: IMT index.
uint16_t imt_index_;
+ // Abstract class (non-interface) methods: Unused (zero-initialized).
};
// Fake padding field gets inserted here.