Reviewers: jochen (slow),
Description:
Whitelist serialized objects wrt MSAN.
[email protected]
BUG=chromium:457459
LOG=N
Please review this at https://codereview.chromium.org/919613002/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+5, -0 lines):
M src/serialize.cc
Index: src/serialize.cc
diff --git a/src/serialize.cc b/src/serialize.cc
index
887276f9cf0dc1b65e6f90432e14cea0b205e9e3..ae3b3a2b2e24d9b64c7b06bafe779f1e84c74760
100644
--- a/src/serialize.cc
+++ b/src/serialize.cc
@@ -2120,6 +2120,10 @@ int Serializer::ObjectSerializer::OutputRawData(
}
const char* description = code_object_ ? "Code" : "Byte";
+#ifdef MEMORY_SANITIZER
+ // Object sizes are usually rounded up with uninitialized padding
space.
+ MSAN_MEMORY_IS_INITIALIZED(object_start + base, bytes_to_output);
+#endif // MEMORY_SANITIZER
sink_->PutRaw(object_start + base, bytes_to_output, description);
if (code_object_) delete[] object_start;
}
@@ -2529,6 +2533,7 @@ class Checksum {
#endif // V8_HOST_ARCH_64_BIT
a_ = static_cast<uint32_t>(a);
b_ = static_cast<uint32_t>(b);
+ printf("%d, %d\n", a_, b_);
}
bool Check(uint32_t a, uint32_t b) const { return a == a_ && b == b_; }
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.