Add VMDebug.getInstancesOfClasses API.

The API can be used to iterate over instances of a given type on the
heap.

The GetInstancesOfClassesBenchmark run on bullhead shows the run time
of the API grows linearly in the number of classes, C, to get instances
of and the number of total instances, N, allocated on the heap.

C   N=~2^18   N=~2^19
1      13ms      21ms
2      26ms      43ms
4      53ms      87ms

Bug: 69729799
Test: art/test/testrunner/testrunner.py -t 099-vmdebug -b --host

Change-Id: Iebc34e1b079e719a66bb93963c5315a0d24834b1
2 files changed