The term stonewall refers to the condition when the compressor fails to develop any head, as the suction volumetric flow is too high for a given RPM. (Recall that, typically, the head drops off as suction flow increases for a given RPM. Eventually, the head v/s suction flow curve becomes nearly vertical at the stonewall flow.)
Surge, on the other hand, refers to the condition when the compressor is subject to extreme flow oscillations and instability; this is caused by insufficient suction flow. The minimum flow required to avoid surge increases with compressor RPM. Antisurge control systems (using very fast acting control valves) recycle flow from the discharge back to the suction to ensure that the net suction flow exceeds the minimum required, for a given RPM, to avoid surging.