diff options
Diffstat (limited to 'runtime/globals.h')
| -rw-r--r-- | runtime/globals.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/globals.h b/runtime/globals.h index 0b44c47092..9045d404e6 100644 --- a/runtime/globals.h +++ b/runtime/globals.h @@ -47,7 +47,8 @@ static inline bool CanDoImplicitNullCheckOn(uintptr_t offset) { } // Required object alignment -static constexpr size_t kObjectAlignment = 8; +static constexpr size_t kObjectAlignmentShift = 3; +static constexpr size_t kObjectAlignment = 1u << kObjectAlignmentShift; static constexpr size_t kLargeObjectAlignment = kPageSize; // Whether or not this is a debug build. Useful in conditionals where NDEBUG isn't. |