From 4e915fbc2be5fc43c782389bbbb7306cd76a523a Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Wed, 28 Oct 2015 17:39:47 +0000 Subject: Tune heuristics a bit. First version. Seems to be more in line with what we're seeing. Change-Id: I5117352c13cb2e95d16f0c9b05b1faf37c05d710 --- runtime/jit/jit_code_cache.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/jit/jit_code_cache.cc') diff --git a/runtime/jit/jit_code_cache.cc b/runtime/jit/jit_code_cache.cc index 2596dd974d..60568b2f77 100644 --- a/runtime/jit/jit_code_cache.cc +++ b/runtime/jit/jit_code_cache.cc @@ -57,9 +57,9 @@ JitCodeCache* JitCodeCache::Create(size_t capacity, std::string* error_msg) { return nullptr; } - // Data cache is 1 / 4 of the map. + // Data cache is 1 / 2 of the map. // TODO: Make this variable? - size_t data_size = RoundUp(data_map->Size() / 4, kPageSize); + size_t data_size = RoundUp(data_map->Size() / 2, kPageSize); size_t code_size = data_map->Size() - data_size; uint8_t* divider = data_map->Begin() + data_size; -- cgit v1.2.3-59-g8ed1b