diff options
author | 2019-03-28 13:48:31 +0000 | |
---|---|---|
committer | 2019-03-29 09:50:00 +0000 | |
commit | 4617d5823c8e7841fed813b3b9c72664d7fd4dc6 (patch) | |
tree | 9eafbee06717e02a2c4acd5d7ce1e6601955356e /runtime/entrypoints/entrypoint_utils.cc | |
parent | d7e9bbf092b5a61048358fd54183526ef12284af (diff) |
ObjPtr<>-ify mirror::Object::As*(), fix stale refs in test.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 31113334
Change-Id: Ia04c4996f5cbfa1f26acbadcd747342c57b1aac3
Diffstat (limited to 'runtime/entrypoints/entrypoint_utils.cc')
-rw-r--r-- | runtime/entrypoints/entrypoint_utils.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/entrypoints/entrypoint_utils.cc b/runtime/entrypoints/entrypoint_utils.cc index 11365cb2b6..ee2ab567b2 100644 --- a/runtime/entrypoints/entrypoint_utils.cc +++ b/runtime/entrypoints/entrypoint_utils.cc @@ -164,7 +164,7 @@ bool FillArrayData(ObjPtr<mirror::Object> obj, const Instruction::ArrayDataPaylo ThrowNullPointerException("null array in FILL_ARRAY_DATA"); return false; } - mirror::Array* array = obj->AsArray(); + ObjPtr<mirror::Array> array = obj->AsArray(); DCHECK(!array->IsObjectArray()); if (UNLIKELY(static_cast<int32_t>(payload->element_count) > array->GetLength())) { Thread* self = Thread::Current(); |