8015972: Refactor the sending of the object count after GC event

Reviewed-by: mgerdin, brutisso
6 files changed