summaryrefslogtreecommitdiff
path: root/runtime/gc/heap_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/gc/heap_test.cc')
-rw-r--r--runtime/gc/heap_test.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/gc/heap_test.cc b/runtime/gc/heap_test.cc
index 5e8c1e368a..55ddd72715 100644
--- a/runtime/gc/heap_test.cc
+++ b/runtime/gc/heap_test.cc
@@ -30,6 +30,10 @@ namespace gc {
class HeapTest : public CommonRuntimeTest {
public:
+ HeapTest() {
+ use_boot_image_ = true; // Make the Runtime creation cheaper.
+ }
+
void SetUp() override {
MemMap::Init();
std::string error_msg;
@@ -100,6 +104,11 @@ TEST_F(HeapTest, DumpGCPerformanceOnShutdown) {
}
class ZygoteHeapTest : public CommonRuntimeTest {
+ public:
+ ZygoteHeapTest() {
+ use_boot_image_ = true; // Make the Runtime creation cheaper.
+ }
+
void SetUpRuntimeOptions(RuntimeOptions* options) override {
CommonRuntimeTest::SetUpRuntimeOptions(options);
options->push_back(std::make_pair("-Xzygote", nullptr));