OSDN Git Service

Implement RetransformClasses
authorAlex Light <allight@google.com>
Fri, 13 Jan 2017 22:15:41 +0000 (14:15 -0800)
committerAlex Light <allight@google.com>
Thu, 19 Jan 2017 19:29:41 +0000 (11:29 -0800)
commita6c5e97a4395352bc8684e6af9cecb62b80c316c
treeeb16d801ff605ac9e0cbc8512c22cf38668554a1
parenta8b4390a3b817a455b0abdf575922fea6182170d
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
21 files changed:
runtime/openjdkjvmti/OpenjdkJvmTi.cc
runtime/openjdkjvmti/art_jvmti.h
runtime/openjdkjvmti/events-inl.h
runtime/openjdkjvmti/events.h
runtime/openjdkjvmti/ti_redefine.cc
runtime/openjdkjvmti/ti_redefine.h
runtime/openjdkjvmti/transform.cc
runtime/openjdkjvmti/transform.h
test/921-hello-failure/expected.txt
test/921-hello-failure/src/Main.java
test/921-hello-failure/src/MultiRetrans.java [new file with mode: 0644]
test/930-hello-retransform/build [new file with mode: 0755]
test/930-hello-retransform/expected.txt [new file with mode: 0644]
test/930-hello-retransform/info.txt [new file with mode: 0644]
test/930-hello-retransform/run [new file with mode: 0755]
test/930-hello-retransform/src/Main.java [new file with mode: 0644]
test/930-hello-retransform/src/Transform.java [new file with mode: 0644]
test/Android.run-test.mk
test/ti-agent/common_helper.cc
test/ti-agent/common_helper.h
test/ti-agent/common_load.cc