summaryrefslogtreecommitdiff
path: root/runtime/gc/allocator/rosalloc.h
diff options
context:
space:
mode:
author Ian Rogers <irogers@google.com> 2014-10-10 13:03:39 -0700
committer Ian Rogers <irogers@google.com> 2014-10-10 15:01:21 -0700
commit59c07060a6fbb93e455b44f00098cafb8e7e26cc (patch)
treee6db8fc4af24aa1704be0cd516d27340ae3ecae5 /runtime/gc/allocator/rosalloc.h
parentb2a7ec2ad3f24c4094185cbf87bd0a39f727ffe7 (diff)
Work around ICE bugs with MIPS GCC and O1.
Also, work around GCC warning bugs where array accesses with explicit bounds checks are flagged as being out-of-bounds. Significantly, clean-up the HandleScope so the array accesses don't appear out-of-bounds at compile time. Change-Id: I5d66567559cc1f97cd0aa02c0df8575ebadbfe3d
Diffstat (limited to 'runtime/gc/allocator/rosalloc.h')
-rw-r--r--runtime/gc/allocator/rosalloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/gc/allocator/rosalloc.h b/runtime/gc/allocator/rosalloc.h
index 8374ff70b2..ad7f901181 100644
--- a/runtime/gc/allocator/rosalloc.h
+++ b/runtime/gc/allocator/rosalloc.h
@@ -285,7 +285,7 @@ class RosAlloc {
// Returns the byte size of the bracket size from the index.
static size_t IndexToBracketSize(size_t idx) {
- DCHECK(idx < kNumOfSizeBrackets);
+ DCHECK_LT(idx, kNumOfSizeBrackets);
return bracketSizes[idx];
}
// Returns the index of the size bracket from the bracket size.