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
Change-Id: I92de72de3eae0b76629e9da83db2c2d0fa613052
diff --git a/runtime/runtime.h b/runtime/runtime.h
index 254e31a..183bf52 100644
--- a/runtime/runtime.h
+++ b/runtime/runtime.h
@@ -424,13 +424,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);