Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index fab79ddb71b30ed39cc26e521de7ee3116db7eac..30cf94049f6d0dcf760418e6babab0cea165fc1c 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -1555,6 +1555,11 @@ void PromotionQueue::Initialize() { |
emergency_stack_ = NULL; |
} |
+void PromotionQueue::Destroy() { |
+ DCHECK(is_empty()); |
+ delete emergency_stack_; |
+ emergency_stack_ = NULL; |
+} |
void PromotionQueue::RelocateQueueHead() { |
DCHECK(emergency_stack_ == NULL); |