diff options
author | Alex Light <allight@google.com> | 2019-07-18 16:08:41 -0700 |
---|---|---|
committer | Alex Light <allight@google.com> | 2019-08-01 17:50:27 +0000 |
commit | c14ec8facf0ea51e7531fa0acbed3410468b0356 (patch) | |
tree | a70bc3cffcaf763e4951c96918bc6f8b25a472b3 /test/ProfileTestMultiDex/Main.java | |
parent | 147a911636402f2658ce60bd3ad62eb197b00f74 (diff) |
Add resize arrays JVMTI extension
As a prototype for more general object replacement functionality add a
new JVMTI extension that allows one to change the size of arrays. This
extension is 'com.android.art.heap.change_array_size'. As far as any
JVMTI agent, JNI or Java Language code can observer this extension
atomically replaces every reference (strong and weak, global and
local, etc.) with a newly allocated array with the same contents but a
different length. Internally a whole new array will be created then
the old array will have its contents (including lock-word) copied and
all references to the old array will be replaced with the new array.
Test: ./test.py --host
Bug: 134162467
Change-Id: I92a0beabb02e0c92c8c8f9639836014ff1266878
Diffstat (limited to 'test/ProfileTestMultiDex/Main.java')
0 files changed, 0 insertions, 0 deletions