summaryrefslogtreecommitdiff
path: root/runtime/mirror/object.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2016-11-03 13:06:25 -0700
committer Andreas Gampe <agampe@google.com> 2016-11-03 14:07:56 -0700
commit38cea84b362a10859580e788e984324f36272817 (patch)
treecf232431a9139116ea09b451aa9abbc98b8d8462 /runtime/mirror/object.cc
parent47b6bdb2a06cc4c296762c7461281f4390e17c2d (diff)
ART: Make Handle trivially-copyable
Use default copy constructor and copy assignment to make Handle trivially copyable. Do the same for MutableHandle. Fix up unused Handle warnings. Add asserts in the HandleScope test. Bug: 32619234 Test: m test-art-host Change-Id: I151f0bdbeeb131a6fc5c44610f345663ebe96c09
Diffstat (limited to 'runtime/mirror/object.cc')
-rw-r--r--runtime/mirror/object.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/runtime/mirror/object.cc b/runtime/mirror/object.cc
index 8cfb60e60e..f5b9ab36de 100644
--- a/runtime/mirror/object.cc
+++ b/runtime/mirror/object.cc
@@ -235,8 +235,6 @@ void Object::CheckFieldAssignmentImpl(MemberOffset field_offset, ObjPtr<Object>
}
for (ObjPtr<Class> cur = c; cur != nullptr; cur = cur->GetSuperClass()) {
for (ArtField& field : cur->GetIFields()) {
- StackHandleScope<1> hs(Thread::Current());
- Handle<Object> h_object(hs.NewHandle(new_value));
if (field.GetOffset().Int32Value() == field_offset.Int32Value()) {
CHECK_NE(field.GetTypeAsPrimitiveType(), Primitive::kPrimNot);
// TODO: resolve the field type for moving GC.