diff options
author | Hiroshi Yamauchi <yamauchi@google.com> | 2014-07-30 14:26:22 -0700 |
---|---|---|
committer | Hiroshi Yamauchi <yamauchi@google.com> | 2014-07-31 10:45:47 -0700 |
commit | 7da9586b559290e1c16207c6513ffe485de61655 (patch) | |
tree | 4fb44066c831224dad49430f69aa4edf29aad3da /runtime/verifier/register_line-inl.h | |
parent | 1175aec5f686b9e3d429282d7d4022c39436f71f (diff) | |
download | art-7da9586b559290e1c16207c6513ffe485de61655.zip art-7da9586b559290e1c16207c6513ffe485de61655.tar.gz art-7da9586b559290e1c16207c6513ffe485de61655.tar.bz2 |
Add read barriers for the roots in the verifier.
Note: Because the roots (the class references in RegType objects) can
be updated by the read barriers, a lot of uses of type "const RegType"
were replaced with "RegType".
Bug: 12687968
Change-Id: I6cf37a87f352938d43fb51560a8d927ada104f50
Diffstat (limited to 'runtime/verifier/register_line-inl.h')
-rw-r--r-- | runtime/verifier/register_line-inl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/verifier/register_line-inl.h b/runtime/verifier/register_line-inl.h index 0989cd0..378c6d3 100644 --- a/runtime/verifier/register_line-inl.h +++ b/runtime/verifier/register_line-inl.h @@ -25,7 +25,7 @@ namespace art { namespace verifier { -inline const RegType& RegisterLine::GetRegisterType(uint32_t vsrc) const { +inline RegType& RegisterLine::GetRegisterType(uint32_t vsrc) const { // The register index was validated during the static pass, so we don't need to check it here. DCHECK_LT(vsrc, num_regs_); return verifier_->GetRegTypeCache()->GetFromId(line_[vsrc]); |