summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/runtime.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index d50a4f0d17..078e7d24e1 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -438,7 +438,8 @@ bool Runtime::Start() {
started_ = true;
- if (IsZygote()) {
+ // Use !IsCompiler so that we get test coverage, tests are never the zygote.
+ if (!IsCompiler()) {
ScopedObjectAccess soa(self);
gc::space::ImageSpace* image_space = heap_->GetImageSpace();
if (image_space != nullptr) {