summaryrefslogtreecommitdiff
path: root/runtime/base/arena_allocator.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/base/arena_allocator.h')
-rw-r--r--runtime/base/arena_allocator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/base/arena_allocator.h b/runtime/base/arena_allocator.h
index 36334c4129..8a96571e99 100644
--- a/runtime/base/arena_allocator.h
+++ b/runtime/base/arena_allocator.h
@@ -276,6 +276,8 @@ class ArenaPool {
Arena* AllocArena(size_t size) REQUIRES(!lock_);
void FreeArenaChain(Arena* first) REQUIRES(!lock_);
size_t GetBytesAllocated() const REQUIRES(!lock_);
+ void ReclaimMemory() NO_THREAD_SAFETY_ANALYSIS;
+ void LockReclaimMemory() REQUIRES(!lock_);
// Trim the maps in arenas by madvising, used by JIT to reduce memory usage. This only works
// use_malloc is false.
void TrimMaps() REQUIRES(!lock_);