Do not reset SirtRef pointing to a live object

ClassLinker::FindClass reset the klass SirtRef to point to the
existing Class value. However, the old value was still referenced by
the ObjectLock. In the rare case of a two thread resolving the same
class at the same time and a garbage collection happening, the
ObjectLock would point to freed memory.

Change-Id: I93dbbfe3e5d7a8922464242270ac90c71a125e47
2 files changed
tree: 75cfd810bf53c66961e477abe3d0ffcd14384211
  1. .gitignore
  2. Android.mk
  3. build/
  4. jdwpspy/
  5. src/
  6. test/
  7. tools/