summaryrefslogtreecommitdiff
path: root/runtime/jit/jit_code_cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/jit/jit_code_cache.cc')
-rw-r--r--runtime/jit/jit_code_cache.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/jit/jit_code_cache.cc b/runtime/jit/jit_code_cache.cc
index 697ea94a85..2474399f59 100644
--- a/runtime/jit/jit_code_cache.cc
+++ b/runtime/jit/jit_code_cache.cc
@@ -1101,7 +1101,7 @@ bool JitCodeCache::ShouldDoFullCollection() {
if (IsAtMaxCapacity()) {
// Always do a full collection when the code cache is full.
return true;
- } else if (private_region_.GetCurrentCapacity() < kReservedCapacity) {
+ } else if (private_region_.GetCurrentCapacity() < GetReservedCapacity()) {
// Always do partial collection when the code cache size is below the reserved
// capacity.
return false;