diff options
author | Jeff Hao <jeffhao@google.com> | 2015-06-22 14:29:54 -0700 |
---|---|---|
committer | Jeff Hao <jeffhao@google.com> | 2015-06-22 14:29:54 -0700 |
commit | 38fafa18f0fcf610f6314a0fc4165e04e6e5d017 (patch) | |
tree | 0514755fcd07e02219ad3901762363d98c01cc76 /runtime | |
parent | 421e495c9bc53649605639dd738b8da8669147f1 (diff) | |
download | art-38fafa18f0fcf610f6314a0fc4165e04e6e5d017.zip art-38fafa18f0fcf610f6314a0fc4165e04e6e5d017.tar.gz art-38fafa18f0fcf610f6314a0fc4165e04e6e5d017.tar.bz2 |
Make large string use large object space.
Bug: 21209641
Change-Id: I731a920c02f29f0321f2077093516aaa0f8d782f
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/mirror/string-inl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/mirror/string-inl.h b/runtime/mirror/string-inl.h index 9f6cd11..d283f58 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> |