diff options
| author | 2016-12-08 11:39:42 +0000 | |
|---|---|---|
| committer | 2017-03-10 12:59:37 +0000 | |
| commit | 1aea3510b8dd0c512cec61c91c5ef1f1e5d53d64 (patch) | |
| tree | 94cbab7c3097ce7d3a1feb1a69f28406644af085 /runtime/linear_alloc.cc | |
| parent | d1d4530ffa97729aa8944932a7ac2009ae51c7e3 (diff) | |
Hash-based DexCache field array.
Test: m test-art-host, both AOT and interpreter
Test: m test-art-target, both AOT and interpreter
Test: m valgrind-test-art-host
Bug: 30627598
Change-Id: If992f091aadd862d17b09928d21659573dd285a0
Diffstat (limited to 'runtime/linear_alloc.cc')
| -rw-r--r-- | runtime/linear_alloc.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/linear_alloc.cc b/runtime/linear_alloc.cc index f91b0ed9ea..e9db9b8b4c 100644 --- a/runtime/linear_alloc.cc +++ b/runtime/linear_alloc.cc @@ -33,6 +33,11 @@ void* LinearAlloc::Alloc(Thread* self, size_t size) { return allocator_.Alloc(size); } +void* LinearAlloc::AllocAlign16(Thread* self, size_t size) { + MutexLock mu(self, lock_); + return allocator_.AllocAlign16(size); +} + size_t LinearAlloc::GetUsedMemory() const { MutexLock mu(Thread::Current(), lock_); return allocator_.BytesUsed(); |