Behavior of lattice defects in GaAs