I would prefer to see a CAS/retry loop here to avoid race conditions, but I'm a bit obsessed with CAS in general...