Annotate PromotionQueue::RelocateQueueHead for MemorySanitizer.

BUG=chromium:416875
LOG=N
R=earthdok@chromium.org, jkummerow@chromium.org

Review URL: https://codereview.chromium.org/603633002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24738 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
ulan@chromium.org 2014-10-20 12:12:51 +00:00
parent 04bcca84f1
commit 465d643a9d

View File

@ -1398,6 +1398,10 @@ void PromotionQueue::RelocateQueueHead() {
while (head_start != head_end) {
int size = static_cast<int>(*(head_start++));
HeapObject* obj = reinterpret_cast<HeapObject*>(*(head_start++));
// New space allocation in SemiSpaceCopyObject marked the region
// overlapping with promotion queue as uninitialized.
MSAN_MEMORY_IS_INITIALIZED(&size, sizeof(size));
MSAN_MEMORY_IS_INITIALIZED(&obj, sizeof(obj));
emergency_stack_->Add(Entry(obj, size));
}
rear_ = head_end;