diff options
| author | 2024-05-01 12:38:40 +0100 | |
|---|---|---|
| committer | 2024-05-01 12:38:40 +0100 | |
| commit | 33ab3ac9a8616e3d7f2e3f67685d9811d0ffb65c (patch) | |
| tree | d76150b128fc4a85c612f586092460ee52e315b0 /runtime/jit/jit_code_cache.h | |
| parent | c485affa72ed3429166cf036934ccaf21bee01d2 (diff) | |
Put back FreeAllMethodHeaders under the JIT lock.
Mistake from previous CL r.android.com/3051983, the code should be
guarded by the JIT lock as it's deleting memory concurrently to
allocations.
Test: test.py
Change-Id: I008edc5a17d2ad31dd7a95c3097d84b80bd815c4
Diffstat (limited to 'runtime/jit/jit_code_cache.h')
| -rw-r--r-- | runtime/jit/jit_code_cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/jit/jit_code_cache.h b/runtime/jit/jit_code_cache.h index 5202c2c37e..7de29d4024 100644 --- a/runtime/jit/jit_code_cache.h +++ b/runtime/jit/jit_code_cache.h @@ -452,6 +452,7 @@ class JitCodeCache { // Remove CHA dependents and underlying allocations for entries in `method_headers`. void FreeAllMethodHeaders(const std::unordered_set<OatQuickMethodHeader*>& method_headers) + REQUIRES(Locks::jit_lock_) REQUIRES(!Locks::cha_lock_); // Removes method from the cache. The caller must ensure that all threads |