diff options
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 |
commit | 59c07060a6fbb93e455b44f00098cafb8e7e26cc (patch) | |
tree | e6db8fc4af24aa1704be0cd516d27340ae3ecae5 /runtime/thread.h | |
parent | b2a7ec2ad3f24c4094185cbf87bd0a39f727ffe7 (diff) | |
download | art-59c07060a6fbb93e455b44f00098cafb8e7e26cc.tar.gz art-59c07060a6fbb93e455b44f00098cafb8e7e26cc.tar.bz2 art-59c07060a6fbb93e455b44f00098cafb8e7e26cc.zip |
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/thread.h')
-rw-r--r-- | runtime/thread.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/thread.h b/runtime/thread.h index 998e47275c..b0be841730 100644 --- a/runtime/thread.h +++ b/runtime/thread.h @@ -692,7 +692,7 @@ class Thread { } void PushHandleScope(HandleScope* handle_scope) { - handle_scope->SetLink(tlsPtr_.top_handle_scope); + DCHECK_EQ(handle_scope->GetLink(), tlsPtr_.top_handle_scope); tlsPtr_.top_handle_scope = handle_scope; } |