diff options
author | 2015-07-30 16:20:06 -0700 | |
---|---|---|
committer | 2015-08-05 18:15:22 -0700 | |
commit | 54d220eb9cc51215d75b9e0fe921b94bebbb3fd6 (patch) | |
tree | fe08749dea3ca6cad97bce48416beb37203efdf5 /runtime/base/iteration_range.h | |
parent | 275bc5e5f318ba6ea1bad6c89c2924d1248b7523 (diff) |
Move ArtFields and ArtMethods to be a length prefixed array
Fixes race conditions between changing method and fields arrays
being seen in the wrong order by the GC.
Bug: 22832610
Change-Id: Ia21d6698f73ba207a6392c3d6b9be2658933073f
Diffstat (limited to 'runtime/base/iteration_range.h')
-rw-r--r-- | runtime/base/iteration_range.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/base/iteration_range.h b/runtime/base/iteration_range.h index 6a0ef1f585..cf02d32d03 100644 --- a/runtime/base/iteration_range.h +++ b/runtime/base/iteration_range.h @@ -49,6 +49,11 @@ static inline IterationRange<Iter> MakeIterationRange(const Iter& begin_it, cons return IterationRange<Iter>(begin_it, end_it); } +template <typename Iter> +static inline IterationRange<Iter> MakeEmptyIterationRange(const Iter& it) { + return IterationRange<Iter>(it, it); +} + } // namespace art #endif // ART_RUNTIME_BASE_ITERATION_RANGE_H_ |