Copy miranda methods before suspend point
This fixes a bug where moving GC could happen at vtable CopyOf and
result miranda methods having stale pointers since they are not part
of the class roots at this point.
Also some minor cleanup.
Bug: 21564728
Change-Id: Ife520db6973782e40edcb2074c17274b799af738
diff --git a/runtime/stride_iterator.h b/runtime/stride_iterator.h
index 5971524..a680302 100644
--- a/runtime/stride_iterator.h
+++ b/runtime/stride_iterator.h
@@ -62,7 +62,8 @@
private:
uintptr_t ptr_;
- const size_t stride_;
+ // Not const for operator=.
+ size_t stride_;
};
} // namespace art