Change intern table to unordered set.
Intern table active used bytes goes from 430k to 317k on system
server. Similar %wise savings on other apps.
Bug: 16238192
(cherry picked from commit d910fcef539e12ab181e56ec80684f39c4e95733)
Change-Id: Ic70395124435c6f420a77e6d8639404a160f395a
diff --git a/runtime/runtime.h b/runtime/runtime.h
index e97af17..9dff745 100644
--- a/runtime/runtime.h
+++ b/runtime/runtime.h
@@ -432,13 +432,13 @@
mirror::Object* value, bool is_volatile) const;
void RecordWriteArray(mirror::Array* array, size_t index, uint64_t value) const
SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
- void RecordStrongStringInsertion(mirror::String* s, uint32_t hash_code) const
+ void RecordStrongStringInsertion(mirror::String* s) const
EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_);
- void RecordWeakStringInsertion(mirror::String* s, uint32_t hash_code) const
+ void RecordWeakStringInsertion(mirror::String* s) const
EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_);
- void RecordStrongStringRemoval(mirror::String* s, uint32_t hash_code) const
+ void RecordStrongStringRemoval(mirror::String* s) const
EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_);
- void RecordWeakStringRemoval(mirror::String* s, uint32_t hash_code) const
+ void RecordWeakStringRemoval(mirror::String* s) const
EXCLUSIVE_LOCKS_REQUIRED(Locks::intern_table_lock_);
void SetFaultMessage(const std::string& message);