summaryrefslogtreecommitdiff
path: root/runtime/stack_map.h
diff options
context:
space:
mode:
authorDavid Srbecky <dsrbecky@google.com>2018-05-30 18:12:52 +0100
committerDavid Srbecky <dsrbecky@google.com>2018-05-30 22:52:01 +0000
commitd775f96090a588efbc837961434b10c57bcf189c (patch)
treeff3817dabd3f00450643b13e6b87bdb363fed5d7 /runtime/stack_map.h
parentf5fc6bcdd98f50807756347ac19e8565bce3b6b5 (diff)
Ensure all PCs in stack_map_test are aligned.
It is invalid to try to encode improperly aligned PC. Test: test-art-target-gtest-stack_map_test Change-Id: I73e7b6225bfee87b0d6161298e19648ee6e1d499
Diffstat (limited to 'runtime/stack_map.h')
-rw-r--r--runtime/stack_map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/stack_map.h b/runtime/stack_map.h
index 9d66b3181c..c558846bb3 100644
--- a/runtime/stack_map.h
+++ b/runtime/stack_map.h
@@ -675,7 +675,7 @@ class StackMap : public BitTable<6>::Accessor {
uint32_t GetStackMaskIndex() const { return Get<kStackMaskIndex>(); }
static uint32_t PackNativePc(uint32_t native_pc, InstructionSet isa) {
- // TODO: DCHECK_ALIGNED_PARAM(native_pc, GetInstructionSetInstructionAlignment(isa));
+ DCHECK_ALIGNED_PARAM(native_pc, GetInstructionSetInstructionAlignment(isa));
return native_pc / GetInstructionSetInstructionAlignment(isa);
}