Android P Preview 3 (PPP3.180510.008)
Android p preview 2
Avoid GetObjectsWithTags calls in ClassTrack

We were using GetObjectsWithTags calls in ClassTrack to detect if
classes had been unloaded. This could cause programs to slow down if
they are rapidly receiving events since repeatedly checking all
classes for being unloaded was rather slow. To speed this operation up
we instead use the ObjectFree event to be directly notified when a
class is unloaded.  We then save this information until we are ready
to send an update to the client (during processUnloads).

Test: ./art/tools/run-libjdwp-tests.sh --mode=host
Test: push updated libjdwp.so to marlin
      Attach debugger to AGSA :search process
      Use AGSA

Bug: 79249841
Change-Id: I97ee0fce393d115ee248d0993494891d2c0e4972
1 file changed