From 489135d632dda810825a834a53c51ee42a5c490a Mon Sep 17 00:00:00 2001 From: "mstarzinger@chromium.org" Date: Thu, 4 Apr 2013 10:52:53 +0000 Subject: [PATCH] Switch transition zapping to slower version. This is just an experiment to track down high crash rates on some systems where third-party software corrupts memory regions. R=danno@chromium.org Review URL: https://codereview.chromium.org/13630002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14134 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/objects.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/objects.cc b/src/objects.cc index 0662ba5..8f03b10 100644 --- a/src/objects.cc +++ b/src/objects.cc @@ -9931,9 +9931,14 @@ MaybeObject* Map::PutPrototypeTransition(Object* prototype, Map* map) { void Map::ZapTransitions() { TransitionArray* transition_array = transitions(); - MemsetPointer(transition_array->data_start(), - GetHeap()->the_hole_value(), - transition_array->length()); + // TODO(mstarzinger): Temporarily use a slower version instead of the faster + // MemsetPointer to investigate a crasher. Switch back to MemsetPointer. + Object** data = transition_array->data_start(); + Object* the_hole = GetHeap()->the_hole_value(); + int length = transition_array->length(); + for (int i = 0; i < length; i++) { + data[i] = the_hole; + } } -- 2.7.4