Don't crash in forEachEntry when DebugHeap is enabled.
[WebKit-https.git] / Source / bmalloc / bmalloc / IsoTLS.cpp
index 041f4ba..ec3fcab 100644 (file)
@@ -167,7 +167,8 @@ size_t IsoTLS::size()
 template<typename Func>
 void IsoTLS::forEachEntry(const Func& func)
 {
-    RELEASE_BASSERT(m_lastEntry);
+    if (!m_lastEntry)
+        return;
     PerProcess<IsoTLSLayout>::get()->head()->walkUpToInclusive(
         m_lastEntry,
         [&] (IsoTLSEntry* entry) {