Index: Source/wtf/HashTable.h |
diff --git a/Source/wtf/HashTable.h b/Source/wtf/HashTable.h |
index 5b9f3483cec1800a14d623ad126f3ffd1b1d6182..d8187587f73b7d964d6c6ff1c3b5a0369a56a11b 100644 |
--- a/Source/wtf/HashTable.h |
+++ b/Source/wtf/HashTable.h |
@@ -771,6 +771,7 @@ namespace WTF { |
template<typename HashTranslator, typename T, typename Extra> |
typename HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits, Allocator>::AddResult HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits, Allocator>::add(const T& key, const Extra& extra) |
{ |
+ ASSERT(Allocator::isAllocationAllowed()); |
if (!m_table) |
expand(); |
@@ -833,6 +834,7 @@ namespace WTF { |
template<typename HashTranslator, typename T, typename Extra> |
typename HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits, Allocator>::AddResult HashTable<Key, Value, Extractor, HashFunctions, Traits, KeyTraits, Allocator>::addPassingHashCode(const T& key, const Extra& extra) |
{ |
+ ASSERT(Allocator::isAllocationAllowed()); |
if (!m_table) |
expand(); |