use atomic counter to find next class/fg to reclaim from