Check point root marking.

Added thread list checkpoint function, this goes through every thread and runs
the checkpoint on each thread. Threads that are runnable run the checkpoint
callback themselves in the next suspend check, while suspended threads are
left suspended but have the callback called on them.

Added a checkpoint visitor member to each thread, this visitor called when the
checkpoint request flag is set during transitions to suspended from runnable.

Using the checkpoint to mark the roots reduces the first pause of partial /
full gc to around 1 ms.

Change-Id: I97239cc72ee0e4a3397e9138a62ee559268dce0a
diff --git a/src/runtime.h b/src/runtime.h
index 44823a0..02f5206 100644
--- a/src/runtime.h
+++ b/src/runtime.h
@@ -234,6 +234,9 @@
   // Visit all of the roots we can do safely do concurrently.
   void VisitConcurrentRoots(Heap::RootVisitor* visitor, void* arg);
 
+  // Visit all of the non thread roots, we can do this with mutators unpaused.
+  void VisitNonThreadRoots(Heap::RootVisitor* visitor, void* arg);
+
   // Visit all other roots which must be done with mutators suspended.
   void VisitNonConcurrentRoots(Heap::RootVisitor* visitor, void* arg)
     SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);