summaryrefslogtreecommitdiff
path: root/test/904-object-allocation/src
AgeCommit message (Collapse)Author
2018-04-30Limit test 904 to examining test threadsAlex Light
Test 904 could flake due to capturing allocations from unrelated android system threads. To fix this we filter the allocations we have collected for those from threads created for/running the test. Test: ./test.py --host -j50 Change-Id: Id4636dc153ab5a8208cd5f7bb255e29939dc2b02
2017-04-24Remove unneeded shims and jni binding codeAlex Light
Bug: 37522517 Test: ./test/testrunner/testrunner.py --host -j40 Change-Id: I8670ab1bbf4b906c47d4edb2ad7349f9505da94a
2017-04-12ART: Refactor run-test 904Andreas Gampe
Refactor run-test so it does not depend on printf output. That way we can run it in CTS. Bug: 32072923 Test: art/test/testrunner/testrunner.py -b --host -t 904 Change-Id: Ia0d2e01dba4f46b81e78c88d9c50aafbc69f679e
2017-04-07ART: More refactor for JVMTI run tests (3/3)Andreas Gampe
Add missing Main classes. Bug: 32072923 Test: m test-art-host Change-Id: I600dd5563e44604bd7b61c7d381f0a7d92db278a
2017-04-07ART: More refactor for JVMTI run tests (2/3)Andreas Gampe
Move refactored tests into their final places. Add a host java library that includes those test files. This is a follow-up to CL I740731c3af793521c5a859ef4a1f0ae94d2e1c19 and must be used together with it. Bug: 32072923 Test: None Change-Id: I20b6070eb6bdd4b7a0bf42046302bafa10eee54f
2017-04-07ART: More refactor for JVMTI run tests (1/3)Andreas Gampe
Put (most) tests into a new package and give them dedicated class names (Test9XY). NOTE: BROKEN WITHOUT A FOLLOW-UP CL TO CHANGE DIRECTORY STRUCTURE AND FILE NAMES! Bug: 32072923 Test: None Change-Id: I291b0543f7782914e446a74f0d9037020c88e5b5
2017-04-07ART: Add JVMTI test shimAndreas Gampe
Add shim to expose basic native binding methods. Bug: 32072923 Test: m test-art-host Change-Id: Ifcb9e3f66fce8002dd7d5ecb4de1729ab8939d0d
2017-01-20ART: Refactor TI testsAndreas Gampe
Add a helper to explicitly bind native methods in a given class, using dlsym to look up C functions in the local environment. Add a callback helper that hooks VmInit and calls the above function on the Main class. Use the callback helper before calling the test- defined or shared minimal OnLoad function. Add a binder helper that immediately binds the Main functions. Use the helper before calling the test-defined OnAttach function. Remove System.loadLibrary from tests. Instead rely on the explicit binding. In preparation for making the tests functional on device. Test: m test-art-host Change-Id: I12e68f070e8c6331e51d3a1fa4b9ebd8f28dfce6
2016-10-18ART: Fix and extend test 904Andreas Gampe
Fix using the wrong thread when unregistering. The inner thread should not use Thread.currentThread (copy-n-paste mistake). Add test for registering in OnLoad. Add test for keeping registered on exit. Bug: 31684277 Bug: 31684920 Test: m test-art-host-run-test-904-object-allocation Change-Id: If0d5eeeb864684ab42eeaf62698d1e639f2071d6
2016-10-11ART: Add object reclaim supportAndreas Gampe
Add support for the object free callback. Refactor code in support. Add test. Bug: 31384923 Test: m test-art-host Test: m test-art-host-run-test-905-object-free Test: m ART_USE_READ_BARRIER=true test-art-host-run-test-905-object-free Change-Id: Icde40ad464c723cfe2f7660c07cd2f79b6dc2032
2016-10-10ART: Fix test 904Andreas Gampe
Prefetch class names to avoid allocation for logging. Bug: 31684277 Test: m ART_TEST_RUN_TEST_RELOCATE_NO_PATCHOAT=true test-art-host-run-test-904-object-allocation Change-Id: I8d12ea1a2b15680995af84d243de4d07d22bede5
2016-10-10ART: Add allocation callbackAndreas Gampe
Bug: 31684277 Test: m test-art-host Change-Id: I959f44e23ca5fe55ed678315708895faf0aadb04