summaryrefslogtreecommitdiff
path: root/src/heap_test.cc
diff options
context:
space:
mode:
author Ian Rogers <irogers@google.com> 2012-10-04 10:09:15 -0700
committer Ian Rogers <irogers@google.com> 2012-10-05 11:07:39 -0700
commit50b35e2fd1a68cd1240e4a9d9f363e11764957d1 (patch)
tree4f3c58b7b293380f19e4f33357cb352e3330772e /src/heap_test.cc
parent8e9a1497f0d7da4d55f6e7ed8a7d96ba6db7222d (diff)
Explicitly pass Thread::Current to MutexLock and Alloc.
Change-Id: I8b75bc0617915465f102815b32306aa7760dcae4
Diffstat (limited to 'src/heap_test.cc')
-rw-r--r--src/heap_test.cc5
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!"));
}
}
}