diff options
author | 2015-05-29 16:33:09 +0100 | |
---|---|---|
committer | 2015-06-02 12:30:46 +0100 | |
commit | 6b10c9b2c0e62193ab9df4d63aedea1d0798e742 (patch) | |
tree | 9930b839777184008b38e5504f1274c4cbfd87e1 /runtime/stack_map.h | |
parent | f86808b55b550962c627b50511b98f4de8cd0e60 (diff) |
ART: Fast copy stack mask
StackMap::SetStackMask will currently copy a BitVector into a Memory-
Region bit by bit. This patch adds a new function for copying the data
with memcpy.
Change-Id: I28d45a590b35a4a854cca2f57db864cf8a081487
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 { |