summaryrefslogtreecommitdiffstats
path: root/compiler/image_test.cc
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-04-20 18:53:51 -0700
committerAndreas Gampe <agampe@google.com>2015-04-20 19:51:44 -0700
commitb1fceadbd42b3047a9c06a8af6239c737d67344e (patch)
tree605389efc1479fa58b85481c4c291bc072ba0d78 /compiler/image_test.cc
parent4474073ee836d463af29329c86d49354559a41c5 (diff)
downloadart-b1fceadbd42b3047a9c06a8af6239c737d67344e.zip
art-b1fceadbd42b3047a9c06a8af6239c737d67344e.tar.gz
art-b1fceadbd42b3047a9c06a8af6239c737d67344e.tar.bz2
ART: Change image_classes and compiled_classes to unordered set
These lists can be large, and the soon-to-follow compiled_methods will be potentially even larger. Use a hash set instead of a tree set. Change-Id: I7d25c075540f47771354c6f49928b4fd0c76eb2e
Diffstat (limited to 'compiler/image_test.cc')
-rw-r--r--compiler/image_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/image_test.cc b/compiler/image_test.cc
index cfd525c..8016831 100644
--- a/compiler/image_test.cc
+++ b/compiler/image_test.cc
@@ -124,7 +124,7 @@ TEST_F(ImageTest, WriteRead) {
}
ASSERT_TRUE(compiler_driver_->GetImageClasses() != NULL);
- std::set<std::string> image_classes(*compiler_driver_->GetImageClasses());
+ std::unordered_set<std::string> image_classes(*compiler_driver_->GetImageClasses());
// Need to delete the compiler since it has worker threads which are attached to runtime.
compiler_driver_.reset();