summaryrefslogtreecommitdiff
path: root/runtime/jit/jit_code_cache.h
diff options
context:
space:
mode:
author Orion Hodson <oth@google.com> 2018-05-11 10:10:46 +0100
committer Orion Hodson <oth@google.com> 2018-05-11 10:18:17 +0100
commit607624f043af1de59f0069cfe6a68a00f950510e (patch)
tree8cd8d113838b4a6d14db992db11ca62c156137da /runtime/jit/jit_code_cache.h
parentbae5e4e8e1cc93edd938ee0ee2303b7f5ad6b4dc (diff)
ART: Rename JitCodeCache::FreeCode(const void*)
Rename FreeCode(const void*) to FreeCodeAndData(const void*). Leaves remaining FreeCode(uint8_t*) as responsible for freeing code. Bug: b/66095511 Test: art/test.py --host --64 --jit -r Change-Id: I87eb21a2f0c82c92f5bac3add8f9fc25c294dfc5
Diffstat (limited to 'runtime/jit/jit_code_cache.h')
-rw-r--r--runtime/jit/jit_code_cache.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/jit/jit_code_cache.h b/runtime/jit/jit_code_cache.h
index b10f57eff2..958e8e8aa2 100644
--- a/runtime/jit/jit_code_cache.h
+++ b/runtime/jit/jit_code_cache.h
@@ -317,8 +317,8 @@ class JitCodeCache {
REQUIRES(lock_)
REQUIRES(Locks::mutator_lock_);
- // Free in the mspace allocations for `code_ptr`.
- void FreeCode(const void* code_ptr) REQUIRES(lock_);
+ // Free code and data allocations for `code_ptr`.
+ void FreeCodeAndData(const void* code_ptr) REQUIRES(lock_);
// Number of bytes allocated in the code cache.
size_t CodeCacheSizeLocked() REQUIRES(lock_);
@@ -357,10 +357,10 @@ class JitCodeCache {
REQUIRES(lock_)
REQUIRES_SHARED(Locks::mutator_lock_);
- void FreeCode(uint8_t* code) REQUIRES(lock_);
uint8_t* AllocateCode(size_t code_size) REQUIRES(lock_);
- void FreeData(uint8_t* data) REQUIRES(lock_);
+ void FreeCode(uint8_t* code) REQUIRES(lock_);
uint8_t* AllocateData(size_t data_size) REQUIRES(lock_);
+ void FreeData(uint8_t* data) REQUIRES(lock_);
bool IsWeakAccessEnabled(Thread* self) const;
void WaitUntilInlineCacheAccessible(Thread* self)