commit | 14d90579f013b374638b599361970557ed4b3f09 | [log] [tgz] |
---|---|---|
author | Roland Levillain <rpl@google.com> | Thu Jul 16 10:52:26 2015 +0100 |
committer | Roland Levillain <rpl@google.com> | Thu Jul 16 10:52:26 2015 +0100 |
tree | fe8f9f7b527e73c20078557eefd74615c2cfc7f8 | |
parent | 5c03f3698f5e2e0d762e2e15ec00310b6cdab4fe [diff] [blame] |
Use (D)CHECK_ALIGNED more. Change-Id: I9d740f6a88d01e028d4ddc3e4e62b0a73ea050af
diff --git a/runtime/lock_word.h b/runtime/lock_word.h index a290575..245f8b8 100644 --- a/runtime/lock_word.h +++ b/runtime/lock_word.h
@@ -118,7 +118,7 @@ } static LockWord FromForwardingAddress(size_t target) { - DCHECK(IsAligned < 1 << kStateSize>(target)); + DCHECK_ALIGNED(target, (1 << kStateSize)); return LockWord((target >> kStateSize) | (kStateForwardingAddress << kStateShift)); }