summaryrefslogtreecommitdiff
path: root/runtime/reference_table.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2016-12-14 10:11:49 -0800
committer Andreas Gampe <agampe@google.com> 2016-12-15 09:50:39 -0800
commit46ee31b67d7ee1bd085fbc240502053caa3cf8fa (patch)
tree83e870f293cd60d533207e389d7b094acd87b31f /runtime/reference_table.cc
parent9538f9e2a5d03f1b1bc07ebfbd93b61dcf8ad604 (diff)
ART: Move to libbase StringPrintf
Remove ART's StringPrintf implementation. Fix up clients. Add missing includes where necessary. Test: m test-art-host Change-Id: I564038d5868595ac3bb88d641af1000cea940e5a
Diffstat (limited to 'runtime/reference_table.cc')
-rw-r--r--runtime/reference_table.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/reference_table.cc b/runtime/reference_table.cc
index 1c975a453a..d8b9dcc016 100644
--- a/runtime/reference_table.cc
+++ b/runtime/reference_table.cc
@@ -16,6 +16,8 @@
#include "reference_table.h"
+#include "android-base/stringprintf.h"
+
#include "base/mutex.h"
#include "indirect_reference_table.h"
#include "mirror/array.h"
@@ -30,6 +32,9 @@
namespace art {
+using android::base::StringAppendF;
+using android::base::StringPrintf;
+
ReferenceTable::ReferenceTable(const char* name, size_t initial_size, size_t max_size)
: name_(name), max_size_(max_size) {
CHECK_LE(initial_size, max_size);