summaryrefslogtreecommitdiff
path: root/runtime/class_linker_test.cc
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2019-06-27 10:47:04 -0700
committer Treehugger Robot <treehugger-gerrit@google.com> 2019-06-28 14:58:17 +0000
commit01fbfbebceb00b94cc54738ebf425b6c4a79211a (patch)
tree9061436a555042c12ea6d4fe4cd35df971e0ce37 /runtime/class_linker_test.cc
parent88f3fd910cb0fbc1c2233fc65d2a30542cc62921 (diff)
Avoid useless EncodeArtMethod followed by DecodeArtMethod
In a handful of places we would perform an EncodeArtMethod to call a reflection invoke function which would immediately Decode the method. This could cause issues when using opaque-jni-ids:true since the Encode can cause an OOM exception. To avoid this (and because Encode and Decode are perfect inverses) we changed the Invoke* reflection functions to also accept ArtMethod*s directly and changed callers to use these functions when appropriate. Test: (with child CL) ./test.py --host --jit --debuggable Bug: 134162467 Change-Id: Id2f5b0f49a99405e238ce5b61a22ef9245e523a5
Diffstat (limited to 'runtime/class_linker_test.cc')
0 files changed, 0 insertions, 0 deletions