diff options
| author | 2018-05-11 10:10:46 +0100 | |
|---|---|---|
| committer | 2018-05-11 10:18:17 +0100 | |
| commit | 607624f043af1de59f0069cfe6a68a00f950510e (patch) | |
| tree | 8cd8d113838b4a6d14db992db11ca62c156137da /runtime/jit/jit_code_cache.cc | |
| parent | bae5e4e8e1cc93edd938ee0ee2303b7f5ad6b4dc (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.cc')
| -rw-r--r-- | runtime/jit/jit_code_cache.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/jit/jit_code_cache.cc b/runtime/jit/jit_code_cache.cc index 249a8b04fb..d8aa00c45e 100644 --- a/runtime/jit/jit_code_cache.cc +++ b/runtime/jit/jit_code_cache.cc @@ -563,7 +563,7 @@ void JitCodeCache::SweepRootTables(IsMarkedVisitor* visitor) { } } -void JitCodeCache::FreeCode(const void* code_ptr) { +void JitCodeCache::FreeCodeAndData(const void* code_ptr) { uintptr_t allocation = FromCodeToAllocation(code_ptr); // Notify native debugger that we are about to remove the code. // It does nothing if we are not using native debugger. @@ -590,7 +590,7 @@ void JitCodeCache::FreeAllMethodHeaders( MutexLock mu(Thread::Current(), lock_); ScopedCodeCacheWrite scc(this); for (const OatQuickMethodHeader* method_header : method_headers) { - FreeCode(method_header->GetCode()); + FreeCodeAndData(method_header->GetCode()); } } @@ -916,7 +916,7 @@ bool JitCodeCache::RemoveMethodLocked(ArtMethod* method, bool release_memory) { in_cache = true; if (it->second.GetMethods().empty()) { if (release_memory) { - FreeCode(it->second.GetCode()); + FreeCodeAndData(it->second.GetCode()); } jni_stubs_map_.erase(it); } else { @@ -928,7 +928,7 @@ bool JitCodeCache::RemoveMethodLocked(ArtMethod* method, bool release_memory) { if (it->second == method) { in_cache = true; if (release_memory) { - FreeCode(it->first); + FreeCodeAndData(it->first); } it = method_code_map_.erase(it); } else { |