Record allocation after SetClass to have memory fence for SetClass card mark.

Record allocation is now called after SetClass to ensure that our SetClass card mark is behind a fence.

Also:
Removed remaining LOCKS_EXCLUDED mentionning statistics lock.
Cleaned up some of the code in heap.cc

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