summaryrefslogtreecommitdiff
path: root/compiler/optimizing/codegen_test_utils.h
diff options
context:
space:
mode:
authorRoland Levillain <rpl@google.com>2017-06-26 18:14:39 +0100
committerRoland Levillain <rpl@google.com>2017-06-27 14:13:14 +0100
commit35e42f0ab3b70203038fe037ee50d39e2d37af9a (patch)
tree2c8e6fd5a88ce40dff7daf078954832bebec46a0 /compiler/optimizing/codegen_test_utils.h
parent46e67be2da4623025c306b3bd21b96ce10ae1b6e (diff)
Only look for method optimization annotations in the bootstrap class loader.
When checking for an optimization annotation (FastNative or CriticalNative) on a method, do not resolve the method's annotations' classes as a side effect -- instead, look them up in the bootstrap class loader's resolved types. This is to prevent exceptions from being thrown (during class resolution) in JNI transitions. This change does not affect annotation lookup rules in the context of reflection. Test: art/test/testrunner/testrunner.py -t 656-annotation-lookup-generic-jni Bug: 38454151 Bug: 34659969 Change-Id: Ie6b8b30b96a08baa629c449e3803a031515508d1
Diffstat (limited to 'compiler/optimizing/codegen_test_utils.h')
0 files changed, 0 insertions, 0 deletions