Rewrite classTrack to not use jweaks.
On Android runtimes there is a hard limit for the number of jweaks
that can be active at any one time. By holding a jweak for every class
(often in addition to the one being used by the regular commonRef
code) the debugger was causing the process to run out of the jweaks
when debugging some programs.
This changes the implementation to instead use a second jvmtiEnv which
tags all of the classes in order to keep track of which have been
Test: Use debugger with AGSA (velvet)
Test: ./art/tools/run-libjdwp-tests.sh --mode=host
(cherry picked from commit c53a7db69ec9c262fcc227403e1336a1f48bfd01)
3 files changed