I noticed the sanity checker can print some statistics such as below before and after GCs.
============================== GC Sanity Checking ==============================
Performing Sanity Checks...
roots objects refs null
33835 229706 743653 202798
Does "objects" mean the number of living objects in the heap?