原子操作类-数组(volatile+CAS循环;baseOffset + i*indexScale)
以AtomicIntegerArray为例。1.构造器和域privatestaticfinalintbase=unsafe.arrayBaseOffset(int[].class);privatestaticfinalintshift;privatefinalint[]array;publicAtomicIntegerArray(intlength){array=newint[length];}p