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