diff options
author | 2016-09-26 18:13:17 -0700 | |
---|---|---|
committer | 2016-09-27 16:10:35 -0700 | |
commit | a59d9b228b1eda3bf71a81b6201ec64e26086c23 (patch) | |
tree | 91adf9f0e282eec50ccb28aa2dbc432a5e28d13f /runtime/entrypoints/entrypoint_utils.cc | |
parent | 05ce52b406dcf6b9a24287d14f0e611211e0db3d (diff) |
Use ObjPtr for reflection.cc/h/inl
Changed Pretty helpers to use this to reduce usage of Decode. The
eventual goal is not have almost any calls to ObjPtr::Decode.
Moved ObjPtr out of mirror namespace for convenience. Added more
PoisonObjectPointers calls in class linker, thread suspension.
Bug: 31113334
Test: test-art-host
Change-Id: I44d08db5143d95ed1b65e2f00f9749ef5cf379f7
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 fd9ffbd04d..bfa2b69045 100644 --- a/runtime/entrypoints/entrypoint_utils.cc +++ b/runtime/entrypoints/entrypoint_utils.cc @@ -160,7 +160,7 @@ JValue InvokeProxyInvocationHandler(ScopedObjectAccessAlreadyRunnable& soa, cons } else { JValue jv; jv.SetJ(args.at(i).j); - mirror::Object* val = BoxPrimitive(Primitive::GetType(shorty[i + 1]), jv); + mirror::Object* val = BoxPrimitive(Primitive::GetType(shorty[i + 1]), jv).Decode(); if (val == nullptr) { CHECK(soa.Self()->IsExceptionPending()); return zero; |