From 7ca4b77c98ffdf7a4db26fd9f84b2cfcc274c4aa Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 23 Feb 2016 13:52:01 +0000 Subject: [PATCH] Don't allocate mspaces of less than a page. Fixes jit tests in debug mode. Change-Id: I34565e03683cee063e26975a461d8e75ad4a205f --- runtime/jit/jit_code_cache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/jit/jit_code_cache.h b/runtime/jit/jit_code_cache.h index 087d1de19..74ce7b57f 100644 --- a/runtime/jit/jit_code_cache.h +++ b/runtime/jit/jit_code_cache.h @@ -49,7 +49,7 @@ class JitCodeCache { static constexpr size_t kMaxCapacity = 64 * MB; // Put the default to a very low amount for debug builds to stress the code cache // collection. - static constexpr size_t kInitialCapacity = kIsDebugBuild ? 4 * KB : 64 * KB; + static constexpr size_t kInitialCapacity = kIsDebugBuild ? 8 * KB : 64 * KB; // By default, do not GC until reaching 256KB. static constexpr size_t kReservedCapacity = kInitialCapacity * 4; -- 2.11.0