use atomics in gc