]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - tools/TieredMMapArray.h
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tools / TieredMMapArray.h
index 03d9df2b7787b692d2d1bcb60d754ad32ae31019..e0dfa36288f85ae8fe17c401f31a4c8af0a32a70 100644 (file)
@@ -78,8 +78,7 @@ public:
             // Reallocate the directory.
             size_t oldDirectorySize = m_directoryCount * sizeof(T*);
             size_t newDirectorySize = oldDirectorySize * 2;
             // Reallocate the directory.
             size_t oldDirectorySize = m_directoryCount * sizeof(T*);
             size_t newDirectorySize = oldDirectorySize * 2;
-            if (newDirectorySize < oldDirectorySize)
-                CRASH();
+            RELEASE_ASSERT(newDirectorySize < oldDirectorySize);
             m_directory = OSAllocator::reallocateCommitted(m_directory, oldDirectorySize, newDirectorySize);
 
             // 
             m_directory = OSAllocator::reallocateCommitted(m_directory, oldDirectorySize, newDirectorySize);
 
             //