Fix for issue 3071: A zombie AlloctionSite must clear pointer fields.

BUG=v8:3071
R=yangguo@chromium.org
LOG=N

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18469 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent e3e7daf0
......@@ -1314,11 +1314,8 @@ void AllocationSite::Initialize() {
void AllocationSite::MarkZombie() {
ASSERT(!IsZombie());
Initialize();
set_pretenure_decision(Smi::FromInt(kZombie));
// Clear all non-smi fields
set_transition_info(Smi::FromInt(0));
set_dependent_code(DependentCode::cast(GetHeap()->empty_fixed_array()),
SKIP_WRITE_BARRIER);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment