diff options
author | tony.ys_liu <tony.ys_liu@htc.com> | 2015-01-16 19:16:45 +0800 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2015-01-16 13:52:47 -0800 |
commit | b34d505b090cfefd01665aa735364962a364303e (patch) | |
tree | 5736795c6e3929873c6acbb082160f003efbe86e /test/ProfileTestMultiDex/Main.java | |
parent | f2df4941be3c48daee65f2ca1852994240872e4d (diff) |
Fix infinite loop in GenerateIdentityHashCode
Root Cause:
If no one changes the seed, it will become infinite loop due to below condition
(expected_value & LockWord::kHashMask) == 0
Solution:
Changes the seed before entering the next loop
Added test.
Bug: 19046417
(cherry picked from commit 7380c3175b443cdc6f12a2a3a91df188eaaa5a61)
Change-Id: I7d1c377dd1bda780681514b24d61ebc776bc80ab
Diffstat (limited to 'test/ProfileTestMultiDex/Main.java')
0 files changed, 0 insertions, 0 deletions