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 14:02:26 +0000 (14:02 +0000)
Fixes jit tests in debug mode.

bug:26846185

(cherry picked from commit 7ca4b77c98ffdf7a4db26fd9f84b2cfcc274c4aa)

Change-Id: I73d357ee47f532c3d7ae65ddacbd5c88170dfe1d

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;