Index: src/objects-visiting-inl.h |
diff --git a/src/objects-visiting-inl.h b/src/objects-visiting-inl.h |
index b18a721e60ddad8c3885725fb5cd252ba2d7c760..d7bc6e242b598b7cc9fec0bca1f5bcbe4cb9374e 100644 |
--- a/src/objects-visiting-inl.h |
+++ b/src/objects-visiting-inl.h |
@@ -482,7 +482,7 @@ void StaticMarkingVisitor<StaticVisitor>::VisitConstantPoolArray( |
constant_pool->first_ptr_index()); |
int last_ptr_offset = constant_pool->OffsetOfElementAt( |
constant_pool->first_ptr_index() + |
- constant_pool->count_of_ptr_entries()); |
+ constant_pool->count_of_ptr_entries() - 1); |
StaticVisitor::VisitPointers( |
heap, |
HeapObject::RawField(object, first_ptr_offset), |