Index: src/heap-snapshot-generator.cc |
diff --git a/src/heap-snapshot-generator.cc b/src/heap-snapshot-generator.cc |
index cfa2ad31251658be6e6e3222e7be431539435c69..4588094dde384e90f953cdead38c35402fdaa82a 100644 |
--- a/src/heap-snapshot-generator.cc |
+++ b/src/heap-snapshot-generator.cc |
@@ -2345,7 +2345,7 @@ class OutputStreamWriter { |
int s_chunk_size = Min( |
chunk_size_ - chunk_pos_, static_cast<int>(s_end - s)); |
ASSERT(s_chunk_size > 0); |
- memcpy(chunk_.start() + chunk_pos_, s, s_chunk_size); |
+ OS::MemCopy(chunk_.start() + chunk_pos_, s, s_chunk_size); |
s += s_chunk_size; |
chunk_pos_ += s_chunk_size; |
MaybeWriteChunk(); |