History log of /art/runtime/openjdkjvmti/ti_method.cc
Revision Date Author Comments
0af8cde95a267c86c3e3982f88cab1c7ffb62625 20-Apr-2017 Alex Light <allight@google.com> Do native method bind in jvmti-stress

Extend the jvmti-stress test suite to intercept the NativeMethodBind
event for every method.

Also fix small issue where we tried to add a local reference to a null
thread in ti_method.cc if we had an event trigger before VMInit.

Test: ./test/testrunner/testrunner.py --host --jvmti-stress -j40
Bug: 37432636

Change-Id: I2d83fc460b18edf035ed7296b8e2b06cff3671e5
d78ddec5f8eaf1f27e9043f6f42be90149ccb966 19-Apr-2017 Alex Light <allight@google.com> Implement can_generate_native_method_bind capability

This capability lets one observe and even replace the implementations
of native methods when they are bound.

Test: ./test.py --host -j40

Bug: 37432636
Change-Id: I2432a8e4da1a677e8011ce495296f4ab9f42eb3e
e1f79b62f37e8008fe1889f0a7c783be367a0cef 13-Apr-2017 Andreas Gampe <agampe@google.com> ART: Fix GetArgumentsSize

Fix the copy-paste mistake in GetArgumentsSize for abstract and
proxy methods. Use the usual computation derived from the shorty.

Bug: 34163329
Test: art/test/testrunner/testrunner.py --host -t 910
Change-Id: I71eaab70063303bea8eaa391ea067ebf8027820f
5471141cf6631b4162b222540b531b9f493d3cb2 21-Feb-2017 Andreas Gampe <agampe@google.com> ART: Rewrite JvmtiUniquePtr

Templatize it over the stored type. Add convenience function for
allocation.

Bug: 31455788
Test: m test-art-host
Change-Id: Idaf0a9170e95141e7a9878923aa93a0dbc80819c
27dfa0512141da29e8ecaf704f68e544ac1b277d 17-Feb-2017 Andreas Gampe <agampe@google.com> ART: Add support for generic method signature.

Add support for generic_ptr to GetMethodName.

Bug: 34615460
Test: m test-art-host-run-test-910-methods
Change-Id: Ia48d3c09e49f33a6a8e51d17f3070ea4cd82744c
fdeef52e2b7df4cd2184bb42deb8f1e4325cedce 09-Jan-2017 Andreas Gampe <agampe@google.com> ART: Add method modifiers functions

Add support for IsMethodNative, IsMethodObsolete and IsMethodSynthetic.
Add tests.

Bug: 34163329
Test: m test-art-host-run-test-910-methods
Change-Id: I89077cfde1f37861ccb718345b753dfae1d6abe3
f71832ec285844273db42cab2d883882d56fc739 09-Jan-2017 Andreas Gampe <agampe@google.com> ART: Add method code item functions

Add support for GetArgumentsSize, GetMaxLocals and GetMethodLocation
support. Add tests.

Bug: 34163329
Test: m test-art-host-run-test-910-methods
Change-Id: I14b5d02bf0513dc5a8d3f4ea17c849ab08b8554a
ab2f0d0395c1f5f832239d42d404594d76a8d9d4 06-Jan-2017 Andreas Gampe <agampe@google.com> ART: Add Field methods

Add GetFieldName, GetFieldDeclaringClass, GetFieldModifiers
and IsFieldSynthetic support. Add tests.

Bug: 34113943
Test: m test-art-host-run-test-918-fields
Change-Id: Id33b8c54c250f73f0658ec45ccb2b55eccb37623
da3e56185e982a1cf6b6e3a6ab5a7ca99ea388d0 14-Dec-2016 Andreas Gampe <agampe@google.com> ART: Add GetLineNumberTable

Add support for extracting a line number table. Add output to
stack trace test.

Bug: 31684812
Test: m test-art-host-run-test-911-get-stack-trace
Change-Id: Ief6ff566c35431333b51b551d9d511c7a47a05e7
862bdd8ac9bc0071493acaf3574610cbc7792bbf 18-Nov-2016 Andreas Gampe <agampe@google.com> ART: Fix generic_ptr handling in GetMethodName

Do not write null into a null pointer.

Bug: 31684812
Test: m test-art-host-run-test-910-methods
Change-Id: I79a255c1403ca9621390c9cdc09d2381c26fffb6
13b27842e88ccf1a42807c92daeb108e867dc4cd 08-Nov-2016 Andreas Gampe <agampe@google.com> ART: Refactor jmethodID handling

ArtMethod objects have been native since Marshmallow.
Remove the dependency on being runnable. Refactor the
code into the jni_internal header.

Test: m test-art-host
Change-Id: I1385fcd4c08981491701da55a87036b447aa2fc2
e492ae3e59849ee205c22cd15d3c4df2c4bc2d4c 29-Oct-2016 Andreas Gampe <agampe@google.com> ART: Add GetClassSignature

Add support to retrieve the signature of a JNI class.

Add a test.

Bug: 31684578
Test: m test-art-host-run-test-912-classes
Change-Id: I1cf946996f9089cb5d41e93b4f1064193e9d6350
36bcd4f3f56adf889d488b3fd0fdc7e38e519675 29-Oct-2016 Andreas Gampe <agampe@google.com> ART: Add GetMethodModifiers

Support GetMethodModifiers to retrieve the modifiers of a JNI
method.

Extend test 910.

Bug: 31684812
Test: m test-art-host-run-test-910-methods
Change-Id: Ib44df099bc056c557e526d5fa267df48ac2fd86c
368a2088fe24738cfc534c21141c881cf5ff4238 29-Oct-2016 Andreas Gampe <agampe@google.com> ART: Add GetMethodDeclaringClass

Support GetMethodDeclaringClass to retrieve the declaring class
of a JNI method.

Extend test 910. Also cover proxies.

Bug: 31684812
Test: m test-art-host-run-test-910-methods
Change-Id: I8508f96f88692e540ef53f693ff85590b7553f19
3c252f07cefccd506a7146d976aa5193396e5a4e 28-Oct-2016 Andreas Gampe <agampe@google.com> ART: Add method name support to TI

Add support for GetMethodName.

Bug: 31684812
Test: m test-art-host
Change-Id: I55e7b6dac7e7193c3d9979ebb289b0e2849ad030