Index: src/x64/codegen-x64.cc |
diff --git a/src/x64/codegen-x64.cc b/src/x64/codegen-x64.cc |
index fa8b44a419f594b7ed4d8e91779ed4473169097f..ec66127fe48c1ddf023901809b53a4d6c268eb9b 100644 |
--- a/src/x64/codegen-x64.cc |
+++ b/src/x64/codegen-x64.cc |
@@ -769,7 +769,7 @@ void Code::PatchPlatformCodeAge(byte* sequence, |
uint32_t young_length; |
byte* young_sequence = GetNoCodeAgeSequence(&young_length); |
if (age == kNoAge) { |
- memcpy(sequence, young_sequence, young_length); |
+ CopyBytes(sequence, young_sequence, young_length); |
CPU::FlushICache(sequence, young_length); |
} else { |
Code* stub = GetCodeAgeStub(age, parity); |