OSDN Git Service

Fix byte_cas to use uintptr_t Atomic.
authorMathieu Chartier <mathieuc@google.com>
Tue, 5 Aug 2014 22:59:43 +0000 (15:59 -0700)
committerMathieu Chartier <mathieuc@google.com>
Wed, 6 Aug 2014 01:12:44 +0000 (18:12 -0700)
commita1227a185a5d6e2af83c532379b2f9b4600f6e16
tree7b0b39c86abaf0336de912e18f5617cdeb9e49d7
parent09f60a9f53e6a87d5be84388f7fbf9a091fe0345
Fix byte_cas to use uintptr_t Atomic.

Previously we used int32_t Atomic with a uintptr_t bit shift.
This was a mismatch on 64 bit and resulted in occasionally
having the cas return without having succeeded.

Bug: 16819816

(cherry picked from commit aa3c3e5ee83c061e7f387c75b1b29c9f248ac39c)

Change-Id: Ib97bf5880153ddfacf52409be3e9e821657bac59
runtime/gc/accounting/card_table-inl.h