Fix a heap lock/thread list lock deadlock.

We had an uncaught OOME whose uncaught exception handler -- running
with the thread lock held -- was trying to cause a GC while some
other thread had the heap lock and was waiting for the thread list

Change-Id: I22177129562268837127d9edcc63ef5e93054bdf
10 files changed
tree: 1bad139a9b741483e34adc23b249e9f7fd1b6913
  2. build/
  3. oat_process/
  4. oat_runtime/
  5. src/
  6. test/
  7. tools/