summaryrefslogtreecommitdiff
path: root/runtime/class_table.h
diff options
context:
space:
mode:
author Sam Saccone <samccone@google.com> 2023-01-29 18:16:24 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-01-29 18:16:24 +0000
commit24b3d648ff6c2c200003f55ac63fc910d7bfd40f (patch)
tree1c1324dc63cca9a7b3ea7a0a432535fa25c47d88 /runtime/class_table.h
parentdf68c0a6f0d36728fa728049e5bcec20de2d0d5e (diff)
Revert "Write classes in runtime-generated app image."
This reverts commit df68c0a6f0d36728fa728049e5bcec20de2d0d5e. Reason for revert: b/267084527 Change-Id: I2eacf89c23db00c46d56e78009efa11bed31af60
Diffstat (limited to 'runtime/class_table.h')
-rw-r--r--runtime/class_table.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/runtime/class_table.h b/runtime/class_table.h
index 7e263737c3..123c069f0e 100644
--- a/runtime/class_table.h
+++ b/runtime/class_table.h
@@ -58,31 +58,18 @@ class ClassTable {
explicit TableSlot(ObjPtr<mirror::Class> klass);
TableSlot(ObjPtr<mirror::Class> klass, uint32_t descriptor_hash);
- TableSlot(uint32_t ptr, uint32_t descriptor_hash);
TableSlot& operator=(const TableSlot& copy) {
data_.store(copy.data_.load(std::memory_order_relaxed), std::memory_order_relaxed);
return *this;
}
- uint32_t Data() const {
- return data_.load(std::memory_order_relaxed);
- }
-
bool IsNull() const REQUIRES_SHARED(Locks::mutator_lock_);
uint32_t Hash() const {
return MaskHash(data_.load(std::memory_order_relaxed));
}
- uint32_t NonHashData() const {
- return RemoveHash(Data());
- }
-
- static uint32_t RemoveHash(uint32_t hash) {
- return hash & ~kHashMask;
- }
-
static uint32_t MaskHash(uint32_t hash) {
return hash & kHashMask;
}
@@ -181,11 +168,6 @@ class ClassTable {
REQUIRES(!lock_)
REQUIRES_SHARED(Locks::mutator_lock_);
- // Returns the number of classes in the class table.
- size_t Size() const
- REQUIRES(!lock_)
- REQUIRES_SHARED(Locks::mutator_lock_);
-
// Update a class in the table with the new class. Returns the existing class which was replaced.
ObjPtr<mirror::Class> UpdateClass(const char* descriptor,
ObjPtr<mirror::Class> new_klass,