summaryrefslogtreecommitdiff
path: root/test/044-proxy/src
Commit message (Collapse)AuthorAgeFilesLines
* Disable support for proxy method in nterp.Nicolas Geoffray2020-07-302-0/+56
| | | | | | | | | | | They do not fall into the regular baseline JIT path (ie they cannot have profiling info), so just bail on them for now. Test: 044-proxy, wifi-tests Bug: 112676029 Bug: 157658616 Bug: 160543640 Change-Id: I292d85f5d6bfd0edaad1d26e53f85f3780254fd7
* Make heap exhaustion more robust in art-testsLokesh Gidra2020-05-211-3/+4
| | | | | | Bug: 144525957 Test: art/test/testrunner/testrunner.py Change-Id: I182f8f3c6f3f6c352a7c3846e4bfb6ff9f639953
* Fix heap exhaustion logicLokesh Gidra2020-05-191-1/+1
| | | | | | | | | To ensure that heap exhaustion loop is not a nop in subsequent iterations. Bug: 144525957 Test: art/test/testrunner/testrunner.py Change-Id: I08cbc69846b59ca4ba91f89c56b5f90de8b61408
* Make heap exhaustion more robust in art-testsLokesh Gidra2020-05-181-8/+15
| | | | | | | | | | | Repeat heap exhaustion loop a couple of times to make sure there is no space left on the Java heap. This is essential as we now report OOME even when 1% of the heap is available for allocation. Repetition ensures that even the 1% available heap is also consumed. Test: art/test/testrunner/testrunner.py Bug: 144525957 Change-Id: Iec5e6ae59c95f7ae5e8c13dc47bcc43a76795447
* Make tests robust against GCs failing earlyHans Boehm2020-04-291-0/+6
| | | | | | | | | | | | | | | | | | 044-proxy, 064-field-access, 080-oom-throw, and 617-clinit-oome all intentionally run out of memory, and then try to run a test with a full heap. In the presence of aosp/1286274, this can fail if we initially had some empty space in the heap. A GC may recover < 1% of space, in which case we return OOME. But later allocations may still succeed. The fix is to make sure there is no empty space in the heap when we start. If we end up performing a forced GC, the heap was completely full. Since no memory is dropped during this process, the heap will still be full when we finish. Test: testrunner.py --host -t 044-proxy & Test: testrunner.py --host -t 080-oom-throw Change-Id: I10e3f77cd16d25af96751d039e2e498e1cb43315
* ART: harden test 044Andreas Gampe2018-03-023-11/+33
| | | | | | | | | | | | | Ensure that spec-required methods are correctly passed to the invocation handler. Do not rely on undefined ordering of methods (and unify the handling). Bug: 73888836 Bug: 73901493 Test: art/test/testrunner/testrunner.py -b --host -t 044 Change-Id: I0886bd78f7a45588384c745e38b4a12de4b81934
* Make test 044-proxy less flakyMathieu Chartier2018-01-312-11/+11
| | | | | | | | | Stop the JIT before filling up the heap. Bug: 69836158 Test: test-art-host Change-Id: Idb488b645cbab1eb3b2eb64f316b79b1bf4e61af
* ART: Fix OOME case in proxy dispatchAndreas Gampe2017-11-022-0/+75
| | | | | | | | | | | Even just creating the java.lang.reflect.Method to pass to the handler may throw an exception. Add coverage to run-test 044. Bug: 68817306 Test: m test-art-host Change-Id: Iacf8fd679b9e8a81ff7bf7d5f6227e875ab10518
* Tests: never use System.errKevin Brodsky2017-06-027-28/+28
| | | | | | | | | | | | Always print stack traces to System.out, and replace all System.err.println()'s with System.out.println(). Follow-up of https://android-review.googlesource.com/#/c/187020/ and https://android-review.googlesource.com/#/c/407032/. Test: m test-art-host m test-art-target Change-Id: I9ab9cd955a8db25b2ec6673790e5bc924f62c88a
* ART: Fix type parameter in testsAndreas Gampe2016-07-229-16/+14
| | | | | | | | Move Class to Class<?>, Constructor to Constructor<?>, and in general clean up reflection. Test: m test-art-host-run-test Change-Id: I3a4223ee8d14d032015edf34bf27135757f7138c
* Fix issue with Constructor proxies.Alex Light2016-05-102-0/+54
| | | | | Bug: 28659889 Change-Id: I4307916c79e7b56608c3ff5c9bbe83e175254f28
* Replace proxy class names with deterministic ones for test output.Hiroshi Yamauchi2015-12-073-4/+32
| | | | | | | | | | | | This should avoid potentially flaky test failures in 005-annotations and 044-proxy. (cherrypick commit bc7f8080d1f5d0138cb83cba73a747d43d62c23c) Bug: 25838574 Bug: 12687968 Change-Id: I08765abd82e41258ce4d1d8bb9dffce70c8b6689
* ART: Add missing GetInterfaceMethodIfProxyAndreas Gampe2015-09-092-0/+63
| | | | | | | | | | Add missing uses of GetInterfaceMethodIfProxy in reflection code. Add a test case for a JNI call to a proxy method. Bug: https://code.google.com/p/android-developer-preview/issues/detail?id=2973 Bug: 23886441 Change-Id: I5b66b64b5561fcee15d0314707d67e8abc02ce5b
* Fix moving GC bugs in proxy stub for X86/X86_64Mathieu Chartier2015-06-181-0/+2
| | | | | | | Needed to restore the refs. Bug: 21907554 Change-Id: I562906dff07dcaa78dfb39646ba9ab35a5f56c6c
* Merge "ART: Add another proxy test"Andreas Gampe2014-06-042-0/+44
|\
| * ART: Add another proxy testAndreas Gampe2014-06-022-0/+44
| | | | | | | | Change-Id: Ie5beda276a40067b7246001720cc5eea2fa7585a
* | resolved conflicts for merge of 773965c0 to klp-dev-plus-aospJeff Hao2014-03-141-0/+14
|\ \ | |/ |/| | | Change-Id: I43747a469e8d409397f3d88f6f6f6daaf5fbb372
| * Fix stack trace for proxy methods and added test case.Jeff Hao2014-02-241-1/+21
| | | | | | | | | | | | | | Bug: 11861564 Change-Id: I9513359ff9e5d345ee71d84388afed02bd114ecf (cherry picked from 228d6b8a4f0a21c1e9b2372c3104ce4ee19f65b4)
* | Test Method.getModifiers() result for proxy methodsBrian Carlstrom2014-03-121-6/+9
| | | | | | | | Change-Id: I2ba3be80ea21c5cfc0e2b9463270e34622c8c92b
* | Fix stack trace for proxy methods and added test case.Jeff Hao2013-12-041-1/+21
|/ | | | | | Bug: 11861564 Change-Id: I9513359ff9e5d345ee71d84388afed02bd114ecf
* Interpreter entries and instrumentation as a listener.Ian Rogers2013-04-081-20/+282
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the instrumentation responsible for whether we want method entry/exit stubs, and allow it to use interpreter entry stubs when instruction by instruction instrumentation is required. Improve deoptimization so more JDWP test cases are passing. Refactor exception debug posting, in particular improve reporting in the interpreter. Improve class linker exception throwing so that broken dex files are more likely to be reported. Fixes the performance issue Bug: 8410519. Fix some error reporting lock level errors for the large object space. Make fast object verification faster. Add some debug mode robustness to finding dex PCs in GC maps. Add printf attributes to JniAbortF and fix errors. Expand run-test 044 to test return behaviors and fix issues with not throwing appropriate exceptions for proxies. Ensure causes are reported with a class linker NoClassDefFoundError and JNI NoSuchFieldError. Remove unused debugMe and updateDebuggerFromCode. There's a minor sizing tweak to the arg array builder, and an extra reference array check in the interpreter. Some clean-up of trace code. Fix reg type cache destructor if it is called after the reg type cache is shutdown (as is the case in oatdump). Change-Id: I6519c7b35df77f978d011999354c864f4918e8ce
* Fix proxy return ClassCastException and add test.Ian Rogers2013-02-252-0/+68
| | | | | | | | | Add test for Bug: 8250775 that doesn't effect ART. Expand test case further. ClassCastException has no constructor expecting a cause and so using this creates a JNI failure. Switch to not using a wrapped exception as the wrapping itself wasn't adding information. Change-Id: I32dd541e1a1022089ec993fa4f4646042c5bf1fa
* Kill constants.h and fix some copyright headers.Elliott Hughes2012-03-301-4/+1
| | | | Change-Id: I51c04d731d6de035328781d8ac134ad6fcf49897
* Stash the directly-implemented interfaces in Proxy so we can implement ↵Elliott Hughes2012-03-211-0/+2
| | | | | | | | Class.getInterfaces. Also extend test 044 to spot this (found by a libcore test). Change-Id: I50019db49c549f045d94173c3ed9ae81f05ef858
* Give proxy all of the return types. Part 2.Jesse Wilson2011-10-241-8/+5
| | | | Change-Id: I953144290307f46824642837530ac4deeb6a78b2
* Proxy implementationIan Rogers2011-10-143-0/+218
| | | | | | | | | | This rounds out the proxy implementation by adding missing pieces to the class linker, extending tests and fixing issues in the runtime support. There are also some tweaks for performance and to clean up Method/Object a little. A unit test of the functionality is "art/test/run-test 044" Change-Id: Id94102d10b81cd9b12b95ba8618f6187490204c4
* Adding old unit tests to test suite.jeffhao2011-09-297-0/+818
These tests are copied straight over. They'll still run, but they're using the old system. Change-Id: If494519e52ddf858a9febfc55bdae830468cb3c8