[compiler-rt] 2e92f1a - [NFC][scudo] Reduce test region size on MIPS32

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue May 18 00:19:47 PDT 2021


Author: Vitaly Buka
Date: 2021-05-18T00:15:22-07:00
New Revision: 2e92f1a9bcd5550761be936ac9c0848e6d9fcb40

URL: https://github.com/llvm/llvm-project/commit/2e92f1a9bcd5550761be936ac9c0848e6d9fcb40
DIFF: https://github.com/llvm/llvm-project/commit/2e92f1a9bcd5550761be936ac9c0848e6d9fcb40.diff

LOG: [NFC][scudo] Reduce test region size on MIPS32

Added: 
    

Modified: 
    compiler-rt/lib/scudo/standalone/tests/primary_test.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/scudo/standalone/tests/primary_test.cpp b/compiler-rt/lib/scudo/standalone/tests/primary_test.cpp
index e7aa6f795b66c..3574c28c6c09d 100644
--- a/compiler-rt/lib/scudo/standalone/tests/primary_test.cpp
+++ b/compiler-rt/lib/scudo/standalone/tests/primary_test.cpp
@@ -32,7 +32,12 @@ struct TestConfig1 {
 };
 
 struct TestConfig2 {
+#if defined(__mips__)
+  // Unable to allocate greater size on QEMU-user.
+  static const scudo::uptr PrimaryRegionSizeLog = 23U;
+#else
   static const scudo::uptr PrimaryRegionSizeLog = 24U;
+#endif
   static const scudo::s32 PrimaryMinReleaseToOsIntervalMs = INT32_MIN;
   static const scudo::s32 PrimaryMaxReleaseToOsIntervalMs = INT32_MAX;
   static const bool MaySupportMemoryTagging = false;
@@ -41,7 +46,12 @@ struct TestConfig2 {
 };
 
 struct TestConfig3 {
+#if defined(__mips__)
+  // Unable to allocate greater size on QEMU-user.
+  static const scudo::uptr PrimaryRegionSizeLog = 23U;
+#else
   static const scudo::uptr PrimaryRegionSizeLog = 24U;
+#endif
   static const scudo::s32 PrimaryMinReleaseToOsIntervalMs = INT32_MIN;
   static const scudo::s32 PrimaryMaxReleaseToOsIntervalMs = INT32_MAX;
   static const bool MaySupportMemoryTagging = true;


        


More information about the llvm-commits mailing list