diff options
| author | 2013-12-10 10:22:13 +0000 | |
|---|---|---|
| committer | 2013-12-10 10:22:13 +0000 | |
| commit | a401ca84807898652cbec89b4b89f99a6eea301c (patch) | |
| tree | 9c2b15d421bbf7483dd042a4b9985517c3cc86ee /runtime/thread.cc | |
| parent | fa365d2fa097810f31d6cb1b1ef415636bc63af8 (diff) | |
| parent | 8171fc34bf74ed0df02385787d916bc13eb7f160 (diff) | |
Merge "Don't prefix GC map by length."
Diffstat (limited to 'runtime/thread.cc')
| -rw-r--r-- | runtime/thread.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/runtime/thread.cc b/runtime/thread.cc index fa49faa310..715be99942 100644 --- a/runtime/thread.cc +++ b/runtime/thread.cc @@ -1994,11 +1994,7 @@ class ReferenceMapVisitor : public StackVisitor { // Portable path use DexGcMap and store in Method.native_gc_map_. const uint8_t* gc_map = m->GetNativeGcMap(); CHECK(gc_map != NULL) << PrettyMethod(m); - uint32_t gc_map_length = static_cast<uint32_t>((gc_map[0] << 24) | - (gc_map[1] << 16) | - (gc_map[2] << 8) | - (gc_map[3] << 0)); - verifier::DexPcToReferenceMap dex_gc_map(gc_map + 4, gc_map_length); + verifier::DexPcToReferenceMap dex_gc_map(gc_map); uint32_t dex_pc = GetDexPc(); const uint8_t* reg_bitmap = dex_gc_map.FindBitMap(dex_pc); DCHECK(reg_bitmap != NULL); |