asan: fix the constant for new allocator cache
authorDmitry Vyukov <dvyukov@google.com>
Tue, 15 Jan 2013 10:45:18 +0000 (10:45 +0000)
committerDmitry Vyukov <dvyukov@google.com>
Tue, 15 Jan 2013 10:45:18 +0000 (10:45 +0000)
llvm-svn: 172526

compiler-rt/lib/asan/asan_allocator.h

index 6c136ed..488a0c6 100644 (file)
@@ -112,7 +112,7 @@ struct AsanThreadLocalMallocStorage {
   AsanChunk *free_lists_[kNumberOfSizeClasses];
 #else
   uptr quarantine_cache[16];
-  uptr allocator2_cache[1024];  // Opaque.
+  uptr allocator2_cache[96 * (512 * 8 + 16)];  // Opaque.
 #endif
   void CommitBack();
 };