diff options
| author | 2016-03-11 18:48:55 +0000 | |
|---|---|---|
| committer | 2016-03-11 19:05:54 +0000 | |
| commit | 6832fbe366dd4fc79daa8976f8edbe78d4591649 (patch) | |
| tree | 31f4e846bc6a97c59fda0617bdea298588313680 | |
| parent | 2de1e8a52ef8d4b2e033f3404ca9cc970bb5149c (diff) | |
Fix DCHECK in OatQuickMethodHeader::GetFrameSizeInBytes()
We should check whether the frame is divisible by kStackAlignment.
Change-Id: I5936a6e90b38c09775b4c3a8212641e639c4181c
| -rw-r--r-- | runtime/oat_quick_method_header.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/oat_quick_method_header.h b/runtime/oat_quick_method_header.h index 59c37e4915..daabc6ee09 100644 --- a/runtime/oat_quick_method_header.h +++ b/runtime/oat_quick_method_header.h @@ -119,7 +119,7 @@ class PACKED(4) OatQuickMethodHeader { uint32_t GetFrameSizeInBytes() const { uint32_t result = frame_info_.FrameSizeInBytes(); if (kCheckFrameSize) { - DCHECK_LE(static_cast<size_t>(kStackAlignment), result); + DCHECK_ALIGNED(result, kStackAlignment); } return result; } |