Index: runtime/platform/hashmap.cc |
diff --git a/runtime/platform/hashmap.cc b/runtime/platform/hashmap.cc |
index 34f7ea1284f9f48b38890c95496935551556dcd3..461153398129a270433f45682ffd8f0765885a91 100644 |
--- a/runtime/platform/hashmap.cc |
+++ b/runtime/platform/hashmap.cc |
@@ -166,9 +166,7 @@ void HashMap::Initialize(uint32_t capacity) { |
ASSERT(dart::Utils::IsPowerOfTwo(capacity)); |
map_ = new Entry[capacity]; |
if (map_ == NULL) { |
- // TODO(sgjesse): Handle out of memory. |
- FATAL("Cannot allocate memory for hashmap"); |
- return; |
+ OUT_OF_MEMORY(); |
} |
capacity_ = capacity; |
occupancy_ = 0; |