summaryrefslogtreecommitdiffstats
path: root/runtime/mirror
diff options
context:
space:
mode:
authorJeff Hao <jeffhao@google.com>2015-06-22 14:29:54 -0700
committerJeff Hao <jeffhao@google.com>2015-06-22 14:29:54 -0700
commit38fafa18f0fcf610f6314a0fc4165e04e6e5d017 (patch)
tree0514755fcd07e02219ad3901762363d98c01cc76 /runtime/mirror
parent421e495c9bc53649605639dd738b8da8669147f1 (diff)
downloadart-38fafa18f0fcf610f6314a0fc4165e04e6e5d017.tar.gz
art-38fafa18f0fcf610f6314a0fc4165e04e6e5d017.tar.bz2
art-38fafa18f0fcf610f6314a0fc4165e04e6e5d017.zip
Make large string use large object space.
Bug: 21209641 Change-Id: I731a920c02f29f0321f2077093516aaa0f8d782f
Diffstat (limited to 'runtime/mirror')
-rw-r--r--runtime/mirror/string-inl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/mirror/string-inl.h b/runtime/mirror/string-inl.h
index 9f6cd11c3e..d283f58866 100644
--- a/runtime/mirror/string-inl.h
+++ b/runtime/mirror/string-inl.h
@@ -162,8 +162,8 @@ inline String* String::Alloc(Thread* self, int32_t utf16_length, gc::AllocatorTy
}
gc::Heap* heap = Runtime::Current()->GetHeap();
return down_cast<String*>(
- heap->AllocObjectWithAllocator<kIsInstrumented, false>(self, string_class, size,
- allocator_type, pre_fence_visitor));
+ heap->AllocObjectWithAllocator<kIsInstrumented, true>(self, string_class, size,
+ allocator_type, pre_fence_visitor));
}
template <bool kIsInstrumented>