summaryrefslogtreecommitdiff
path: root/test/044-proxy/src
AgeCommit message (Collapse)Author
2020-07-30Disable support for proxy method in nterp.Nicolas Geoffray
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
2020-05-21Make heap exhaustion more robust in art-testsLokesh Gidra
Bug: 144525957 Test: art/test/testrunner/testrunner.py Change-Id: I182f8f3c6f3f6c352a7c3846e4bfb6ff9f639953
2020-05-19Fix heap exhaustion logicLokesh Gidra
To ensure that heap exhaustion loop is not a nop in subsequent iterations. Bug: 144525957 Test: art/test/testrunner/testrunner.py Change-Id: I08cbc69846b59ca4ba91f89c56b5f90de8b61408
2020-05-18Make heap exhaustion more robust in art-testsLokesh Gidra
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
2020-04-29Make tests robust against GCs failing earlyHans Boehm
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
2018-03-02ART: harden test 044Andreas Gampe
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
2018-01-31Make test 044-proxy less flakyMathieu Chartier
Stop the JIT before filling up the heap. Bug: 69836158 Test: test-art-host Change-Id: Idb488b645cbab1eb3b2eb64f316b79b1bf4e61af
2017-11-02ART: Fix OOME case in proxy dispatchAndreas Gampe
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
2017-06-02Tests: never use System.errKevin Brodsky
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
2016-07-22ART: Fix type parameter in testsAndreas Gampe
Move Class to Class<?>, Constructor to Constructor<?>, and in general clean up reflection. Test: m test-art-host-run-test Change-Id: I3a4223ee8d14d032015edf34bf27135757f7138c
2016-05-10Fix issue with Constructor proxies.Alex Light
Bug: 28659889 Change-Id: I4307916c79e7b56608c3ff5c9bbe83e175254f28
2015-12-07Replace proxy class names with deterministic ones for test output.Hiroshi Yamauchi
This should avoid potentially flaky test failures in 005-annotations and 044-proxy. (cherrypick commit bc7f8080d1f5d0138cb83cba73a747d43d62c23c) Bug: 25838574 Bug: 12687968 Change-Id: I08765abd82e41258ce4d1d8bb9dffce70c8b6689
2015-09-09ART: Add missing GetInterfaceMethodIfProxyAndreas Gampe
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
2015-06-18Fix moving GC bugs in proxy stub for X86/X86_64Mathieu Chartier
Needed to restore the refs. Bug: 21907554 Change-Id: I562906dff07dcaa78dfb39646ba9ab35a5f56c6c
2014-06-04Merge "ART: Add another proxy test"Andreas Gampe
2014-06-02ART: Add another proxy testAndreas Gampe
Change-Id: Ie5beda276a40067b7246001720cc5eea2fa7585a
2014-03-14resolved conflicts for merge of 773965c0 to klp-dev-plus-aospJeff Hao
Change-Id: I43747a469e8d409397f3d88f6f6f6daaf5fbb372
2014-03-12Test Method.getModifiers() result for proxy methodsBrian Carlstrom
Change-Id: I2ba3be80ea21c5cfc0e2b9463270e34622c8c92b
2014-02-24Fix stack trace for proxy methods and added test case.Jeff Hao
Bug: 11861564 Change-Id: I9513359ff9e5d345ee71d84388afed02bd114ecf (cherry picked from 228d6b8a4f0a21c1e9b2372c3104ce4ee19f65b4)
2013-12-04Fix stack trace for proxy methods and added test case.Jeff Hao
Bug: 11861564 Change-Id: I9513359ff9e5d345ee71d84388afed02bd114ecf
2013-04-08Interpreter entries and instrumentation as a listener.Ian Rogers
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
2013-02-25Fix proxy return ClassCastException and add test.Ian Rogers
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
2012-03-30Kill constants.h and fix some copyright headers.Elliott Hughes
Change-Id: I51c04d731d6de035328781d8ac134ad6fcf49897
2012-03-21Stash the directly-implemented interfaces in Proxy so we can implement ↵Elliott Hughes
Class.getInterfaces. Also extend test 044 to spot this (found by a libcore test). Change-Id: I50019db49c549f045d94173c3ed9ae81f05ef858
2011-10-24Give proxy all of the return types. Part 2.Jesse Wilson
Change-Id: I953144290307f46824642837530ac4deeb6a78b2
2011-10-14Proxy implementationIan Rogers
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
2011-09-29Adding old unit tests to test suite.jeffhao
These tests are copied straight over. They'll still run, but they're using the old system. Change-Id: If494519e52ddf858a9febfc55bdae830468cb3c8