OSDN Git Service

Don't allocate mspaces of less than a page.
authorNicolas Geoffray <ngeoffray@google.com>
Tue, 23 Feb 2016 13:52:01 +0000 (13:52 +0000)
committerNicolas Geoffray <ngeoffray@google.com>
Tue, 23 Feb 2016 13:52:01 +0000 (13:52 +0000)
Fixes jit tests in debug mode.

Change-Id: I34565e03683cee063e26975a461d8e75ad4a205f

runtime/jit/jit_code_cache.h

index 087d1de..74ce7b5 100644 (file)
@@ -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;