Revision: 12517 Author: [email protected] Date: Fri Sep 14 06:37:41 2012 Log: Only count the descriptor array if it's owned by the map.
Review URL: https://chromiumcodereview.appspot.com/10918245 http://code.google.com/p/v8/source/detail?r=12517 Modified: /branches/bleeding_edge/src/mark-compact.cc ======================================= --- /branches/bleeding_edge/src/mark-compact.cc Wed Sep 12 09:43:57 2012 +++ /branches/bleeding_edge/src/mark-compact.cc Fri Sep 14 06:37:41 2012 @@ -1548,7 +1548,8 @@ Map* map_obj = Map::cast(obj); ASSERT(map->instance_type() == MAP_TYPE); DescriptorArray* array = map_obj->instance_descriptors(); - if (array != heap->empty_descriptor_array()) { + if (map_obj->owns_descriptors() && + array != heap->empty_descriptor_array()) { int fixed_array_size = array->Size(); heap->RecordObjectStats(FIXED_ARRAY_TYPE, DESCRIPTOR_ARRAY_SUB_TYPE, -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
