Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index dfb24783d016d6d2c5cde5106e93df6ce399cf5d..c21f5fea92406a645fb436f4da03ce74182e0683 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -1765,7 +1765,9 @@ struct WeakListVisitor<Context> { |
} |
} |
- static void VisitPhantomObject(Heap*, Context*) { |
+ static void VisitPhantomObject(Heap*, Context* context) { |
+ // A bit of a hack, see the comment at the end of Genesis::Genesis(). |
+ delete[] reinterpret_cast<uint32_t*>(context->random_state()); |
} |
static int WeakNextOffset() { |