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

Reviewed-by: brutisso, pliden
6 files changed