OSDN Git Service

Fix GC map generation edge case
authorMathieu Chartier <mathieuc@google.com>
Fri, 19 Jun 2015 20:55:27 +0000 (13:55 -0700)
committerMathieu Chartier <mathieuc@google.com>
Fri, 19 Jun 2015 21:17:06 +0000 (14:17 -0700)
commit1626b919005df42ccc90ebe68fc57b7c56d44029
tree944f3c1fa6d13b5f279b224e22ebe278d0b72a18
parente7738e8bf567153fde593404d380a5c79ba6bfa8
Fix GC map generation edge case

Previously we checked the number of bits, but then rounded up to a
byte boundary. If ref_bitmap_bits was 65535, it would pass the check
but not actually fit in the 13 bits for ref_bitmap_bytes since we
rounded up to 8192 bytes.

Regression test infeasible due to smali limitations.

Bug: 21888453
Change-Id: If4b769431f27ecca14fe7852d017bcde01b3e146
compiler/dex/verified_method.cc