diff options
Diffstat (limited to 'src/heap_test.cc')
-rw-r--r-- | src/heap_test.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/heap_test.cc b/src/heap_test.cc index d846db5b7d..881a765131 100644 --- a/src/heap_test.cc +++ b/src/heap_test.cc @@ -15,6 +15,7 @@ */ #include "common_test.h" +#include "sirt_ref.h" namespace art { @@ -38,7 +39,7 @@ TEST_F(HeapTest, GarbageCollectClassLinkerInit) { Class* c = class_linker_->FindSystemClass("[Ljava/lang/Object;"); for (size_t i = 0; i < 1024; ++i) { - SirtRef<ObjectArray<Object> > array(ObjectArray<Object>::Alloc(c, 2048)); + SirtRef<ObjectArray<Object> > array(soa.Self(), ObjectArray<Object>::Alloc(c, 2048)); for (size_t j = 0; j < 2048; ++j) { array->Set(j, String::AllocFromModifiedUtf8("hello, world!")); } |