From 525601be88cba7c3495a6f98e4685d0cb6e6f00c Mon Sep 17 00:00:00 2001 From: "kmillikin@chromium.org" Date: Thu, 9 Jul 2009 12:20:04 +0000 Subject: [PATCH] Fix free list construction for global property cells on x64. Review URL: http://codereview.chromium.org/155287 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2418 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/spaces.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spaces.cc b/src/spaces.cc index 84cc83d84b..55d3929f75 100644 --- a/src/spaces.cc +++ b/src/spaces.cc @@ -1265,7 +1265,7 @@ void FreeListNode::set_size(int size_in_bytes) { // If the block is too small (eg, one or two words), to hold both a size // field and a next pointer, we give it a filler map that gives it the // correct size. - if (size_in_bytes > ByteArray::kHeaderSize) { + if (size_in_bytes > ByteArray::kAlignedSize) { set_map(Heap::raw_unchecked_byte_array_map()); ByteArray::cast(this)->set_length(ByteArray::LengthFor(size_in_bytes)); } else if (size_in_bytes == kPointerSize) {