History log of /art/test/ti-agent/common_helper.h
Revision Date Author Comments
8c0961f9e061ee4b04c1c4ba8ad5cca13bcf884d 24-Jan-2018 David Sehr <sehr@google.com> Move missed files to libdexfile

Reduce the dependencies on utf and utils in preparation for separate
directory.

Bug: 22322814
Test: make -j 50 test-art-host
make -j 50 dexdump2 dexlist

Change-Id: Icdecf895dafec63ef903514eef79d459abc14925
d0d6596dd85e6fdd7c82c242fbc050f611ad3b09 30-Jun-2017 Alex Light <allight@google.com> Split up ti-agent/common_helper.cc

This file has gotten far too large. Split it up into pieces for each
of the major JVMTI helper classes (art.Breakpoint, art.Trace, &
art.Redefinition).

Test: ./test.py --host -j40
Change-Id: Ia0697c212983706aadeb3c4eaa575a6abcf7a825
765b6455e4007b33c2ae489d3d5644b9fb505acf 30-Mar-2017 Andreas Gampe <agampe@google.com> ART: Refactor JVMTI run tests

In preparation for code deduplication with CTS.

Bug: 32072923
Test: m
Change-Id: Ibbe005c94252bd29eae7f88aad301b0b20ddb80d
(cherry picked from commit 3f46c96568bef650ba6d9ce6ac8835d30877f243)
3f46c96568bef650ba6d9ce6ac8835d30877f243 30-Mar-2017 Andreas Gampe <agampe@google.com> ART: Refactor JVMTI run tests

In preparation for code deduplication with CTS.

Bug: 32072923
Test: m
Change-Id: Ibbe005c94252bd29eae7f88aad301b0b20ddb80d
f2f1c9dab95892ec2983f57185c2bb0fbce80f80 15-Mar-2017 Alex Light <allight@google.com> Revert "Revert "Refactor annotation code for obsolete methods.""

The number of InterruptedExceptions created during runtime shutdown is
sometimes inconsistent so we will filter those out of the test results.

This reverts commit 65e0775010121498a37fa26c64fcc5bb17a6c1b5.

Reason for revert: Fixed issue with test flakes

Bug: 31455788
Test: stress --cpu 60; while ./test/run-test --host 980; do; done

Change-Id: Idf53ea11ceec1f48c433da468b31092bf230de57
65e0775010121498a37fa26c64fcc5bb17a6c1b5 15-Mar-2017 Nicolas Geoffray <ngeoffray@google.com> Revert "Refactor annotation code for obsolete methods."

Test has flakes.
Bug: 31455788

This reverts commit 672a0b75c91af44749b1e946684e6a65a884d778.

Change-Id: If00ecbd31abe204bcaf8341eceb674e07c0ac8f2
672a0b75c91af44749b1e946684e6a65a884d778 10-Mar-2017 Alex Light <allight@google.com> Refactor annotation code for obsolete methods.

Reading annotations on obsolete ArtMethod* objects would cause
problems due to reading from the wrong dex file. We refactored that
code so now it always uses the correct dex file when reading
annotations. This was rarely a problem since obsolete ArtMethods are
only ever exposed to the runtime itself which rarely reads
annotations.

We also add a test for redefining Object.class. This is one of the
small number of classes where the runtime will read it's annotations
off of obsolete methods.

Bug: 31455788
Test: ./test/testrunner/testrunner.py --host -j40
Change-Id: I5f1c58464b89a7a9198a7b26b015b102a7dc9c2f
5e03a305edafb49a34b436d9a858281e53d390f2 13-Mar-2017 Andreas Gampe <agampe@google.com> ART: Refactor libopenjdkjvmti

Move jvmti.h to its own folder and fix up include setup.

Bug: 31455788
Test: m
Change-Id: I5beb66fc5d0178746216f61f9214cda54fc2c7ac
440b5d9bffafa46366f58599414e0cff35ea3a6a 25-Jan-2017 Alex Light <allight@google.com> Implement class-pre-define time redefinition.

This allows one to redefine classes as they are being loaded without
restriction as to the types of transformations that may be included.
For example one is allowed to add additional methods or fields to the
class being defined.

Bug: 31684920
Test: mma -j40 test-art-host
Change-Id: I671ee13444c05f28424e727fd80d9d46c78ca287
53ae7803b20650b7f36c0564dbcdc3115f399cba 20-Jan-2017 Andreas Gampe <agampe@google.com> ART: Refactor TI tests

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
6ac5750807e0df930bb3791a9d5a8d8d5b5c45c4 20-Jan-2017 Alex Light <allight@google.com> Revert "Revert "Implement RetransformClasses""

This reverts commit 52a2db50b76f2b981d21d5508c3d9e8ab4c5fe93.

Reason for revert: Issue with RedefineClasses was resolved.

Test: ART_TEST_JNI_FORCECOPY=true mma -j40 test-art-host

Change-Id: I06f198df4fb40c48647b358d241710329e0812e9
52a2db50b76f2b981d21d5508c3d9e8ab4c5fe93 20-Jan-2017 Alex Light <allight@google.com> Revert "Implement RetransformClasses"

This reverts commit a6c5e97a4395352bc8684e6af9cecb62b80c316c.

Reason for revert: Accidently introduces double-free bug in RedefineClasses.

Change-Id: I021336c4fcf0cfb304915b0ffc5eaba5f91fdd5e
a6c5e97a4395352bc8684e6af9cecb62b80c316c 13-Jan-2017 Alex Light <allight@google.com> Implement RetransformClasses

This CL implements basic support for the RetransformClasses function
and callbacks of the ClassFileLoadHook.

We do not yet support calling the ClassFileLoadHook events on first
load of class.

Bug: 32369913
Bug: 31684920

Test: mma -j40 test-art-host

Change-Id: I7959474f03f9903cc6f10ae3c06d9fd531ec7957
1bdaf733b472bc79a8e385f0563ffed603a2c93e 10-Jan-2017 Andreas Gampe <agampe@google.com> ART: Add system properties support

Add simple support for GetSystemProperties, GetSystemProperty and
SetSystemProperty. Add a test.

Bug: 31455788
Test: m test-art-host-run-test-922-properties
Change-Id: I02914f04643f0f8fab96f1b372925c2c5306fc9b
1e07ca6d50d35abc70ed5c72025ec8f48ae01f25 02-Dec-2016 Alex Light <allight@google.com> Cleanup of redefinition testing

Move redefine logic into a single common function and perform some
other cleanup.

Test: mma -j40 test-art-host
Change-Id: I8618bda4f392b683ce198374066e356b87578e7b
e657424ab0105227358422452f566c3e72a77c8b 17-Aug-2016 Alex Light <allight@google.com> Add capabilities for jvmti.

Make a skeleton for jvmti capabilities.

Bug: 31455788
Test: m -j40 test-art-host

Change-Id: Ia1f96450d8a1ee59b9db66cf65492154d61fab48
336c3c3abceb7f238d715ea7f243e2c203b6548b 09-Nov-2016 Andreas Gampe <agampe@google.com> ART: Refactor some TI test code for reuse

Pull out helper code for creating arrays of data.

Bug: 31385354
Test: m test-art-host
Change-Id: I916fffa18f5a61bd17acbdbdaffce5b4c66a33ab