summaryrefslogtreecommitdiff
path: root/runtime/mirror/string-alloc-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/mirror/string-alloc-inl.h')
-rw-r--r--runtime/mirror/string-alloc-inl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/mirror/string-alloc-inl.h b/runtime/mirror/string-alloc-inl.h
index 4330235dd9..7215c39927 100644
--- a/runtime/mirror/string-alloc-inl.h
+++ b/runtime/mirror/string-alloc-inl.h
@@ -190,12 +190,12 @@ inline ObjPtr<String> String::Alloc(Thread* self,
}
gc::Heap* heap = runtime->GetHeap();
- return ObjPtr<String>::DownCast(MakeObjPtr(
+ return ObjPtr<String>::DownCast(
heap->AllocObjectWithAllocator<kIsInstrumented, true>(self,
string_class,
alloc_size,
allocator_type,
- pre_fence_visitor)));
+ pre_fence_visitor));
}
template <bool kIsInstrumented>