ART: Initialize field in IndirectReferenceTable
Initialize last known previous segment state.
Bug: 32125344
Test: m test-art-host
Test: m valgrind-test-art-host
Change-Id: I894f467a9f1dae8de55c1e113f0b00a127b13f33
diff --git a/runtime/indirect_reference_table.cc b/runtime/indirect_reference_table.cc
index bc0f73a..c737119 100644
--- a/runtime/indirect_reference_table.cc
+++ b/runtime/indirect_reference_table.cc
@@ -84,6 +84,7 @@
table_ = nullptr;
}
segment_state_ = kIRTFirstSegment;
+ last_known_previous_state_ = kIRTFirstSegment;
}
IndirectReferenceTable::~IndirectReferenceTable() {