summaryrefslogtreecommitdiffstats
path: root/runtime/gc_root-inl.h
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-08-29 18:16:58 -0700
committerMathieu Chartier <mathieuc@google.com>2014-09-02 14:39:49 -0700
commitcdfd39f579574a75b98e7ad48c69826b00361b27 (patch)
tree0f057472d19bf290766e20ea3ad63d0b28ee83a1 /runtime/gc_root-inl.h
parent9a4f02722051955e536d6aacb776d637a6713545 (diff)
downloadart-cdfd39f579574a75b98e7ad48c69826b00361b27.tar.gz
art-cdfd39f579574a75b98e7ad48c69826b00361b27.tar.bz2
art-cdfd39f579574a75b98e7ad48c69826b00361b27.zip
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
Diffstat (limited to 'runtime/gc_root-inl.h')
-rw-r--r--runtime/gc_root-inl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/gc_root-inl.h b/runtime/gc_root-inl.h
index 482f7bca0e..2661e54261 100644
--- a/runtime/gc_root-inl.h
+++ b/runtime/gc_root-inl.h
@@ -29,5 +29,10 @@ inline MirrorType* GcRoot<MirrorType>::Read() {
return ReadBarrier::BarrierForRoot<MirrorType, kReadBarrierOption>(&root_);
}
+template<class MirrorType>
+inline void GcRoot<MirrorType>::Assign(MirrorType* value) {
+ root_ = value;
+}
+
} // namespace art
#endif // ART_RUNTIME_GC_ROOT_INL_H_