[PATCH] D42194: [scudo] Limit by default the TSD pool to 2 on Android

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 17 13:57:28 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT322764: [scudo] Limit by default the TSD pool to 2 on Android (authored by cryptoad, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D42194?vs=130248&id=130267#toc

Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D42194

Files:
  lib/scudo/scudo_platform.h


Index: lib/scudo/scudo_platform.h
===================================================================
--- lib/scudo/scudo_platform.h
+++ lib/scudo/scudo_platform.h
@@ -43,7 +43,11 @@
 
 // Maximum number of TSDs that can be created for the Shared model.
 #ifndef SCUDO_SHARED_TSD_POOL_SIZE
-# define SCUDO_SHARED_TSD_POOL_SIZE 32U
+# if SANITIZER_ANDROID
+#  define SCUDO_SHARED_TSD_POOL_SIZE 2U
+# else
+#  define SCUDO_SHARED_TSD_POOL_SIZE 32U
+# endif  // SANITIZER_ANDROID
 #endif  // SCUDO_SHARED_TSD_POOL_SIZE
 
 // The following allows the public interface functions to be disabled.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42194.130267.patch
Type: text/x-patch
Size: 590 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180117/19c67fa5/attachment.bin>


More information about the llvm-commits mailing list