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:08:47 +0000 (18:08 -0700)
commitaa3c3e5ee83c061e7f387c75b1b29c9f248ac39c
treef5ba01e71db9db92d086439bbb68057d3e080271
parentf6e8d0304d0b0024f1af8e63c2a3a3ad78761d59
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

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