| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 58d51c11ae874ce2ed087636dd84b3844b358a7d..99a0bf1f3c712d2e8ffedc9e0bc1d6eeae11dfaf 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -12586,6 +12586,9 @@ static void ShrinkInstanceSize(Map* map, void* data) {
|
| map->set_visitor_id(Heap::GetStaticVisitorIdForMap(map));
|
| }
|
|
|
| +static void StopSlackTracking(Map* map, void* data) {
|
| + map->set_construction_counter(Map::kNoSlackTracking);
|
| +}
|
|
|
| void Map::CompleteInobjectSlackTracking() {
|
| // Has to be an initial map.
|
| @@ -12596,6 +12599,8 @@ void Map::CompleteInobjectSlackTracking() {
|
| if (slack != 0) {
|
| // Resize the initial map and all maps in its transition tree.
|
| TransitionArray::TraverseTransitionTree(this, &ShrinkInstanceSize, &slack);
|
| + } else {
|
| + TransitionArray::TraverseTransitionTree(this, &StopSlackTracking, nullptr);
|
| }
|
| }
|
|
|
|
|