diff options
Diffstat (limited to 'runtime/stack_map.h')
-rw-r--r-- | runtime/stack_map.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/stack_map.h b/runtime/stack_map.h index eefdaa7391..ba0b6d6265 100644 --- a/runtime/stack_map.h +++ b/runtime/stack_map.h @@ -671,9 +671,7 @@ class StackMap { void SetStackMask(const CodeInfo& info, const BitVector& sp_map) { MemoryRegion region = GetStackMask(info); - for (size_t i = 0; i < region.size_in_bits(); i++) { - region.StoreBit(i, sp_map.IsBitSet(i)); - } + sp_map.CopyTo(region.start(), region.size()); } bool HasDexRegisterMap(const CodeInfo& info) const { |