// for multithreaded GC, each sub-thread uses these functions to count
// events and aggregate them into the main GC counters.
// for multithreaded GC, each sub-thread uses these functions to count
// events and aggregate them into the main GC counters.