From 6832fbe366dd4fc79daa8976f8edbe78d4591649 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Fri, 11 Mar 2016 18:48:55 +0000 Subject: Fix DCHECK in OatQuickMethodHeader::GetFrameSizeInBytes() We should check whether the frame is divisible by kStackAlignment. Change-Id: I5936a6e90b38c09775b4c3a8212641e639c4181c --- runtime/oat_quick_method_header.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(kStackAlignment), result); + DCHECK_ALIGNED(result, kStackAlignment); } return result; } -- cgit v1.2.3-59-g8ed1b