Index: src/heap.cc |
diff --git a/src/heap.cc b/src/heap.cc |
index 50e6656d00aacea3c51ca6720125b6107704671c..1d696c7a167e1914ef092593fe9a49aa3c8627c9 100644 |
--- a/src/heap.cc |
+++ b/src/heap.cc |
@@ -4076,6 +4076,7 @@ void Heap::RecordStats(HeapStats* stats, bool take_snapshot) { |
*stats->memory_allocator_size = MemoryAllocator::Size(); |
*stats->memory_allocator_capacity = |
MemoryAllocator::Size() + MemoryAllocator::Available(); |
+ *stats->os_error = OS::GetLastError(); |
if (take_snapshot) { |
HeapIterator iterator; |
for (HeapObject* obj = iterator.next(); |