The physical mechanisms that cause tokamak plasmas to rotate toroidally without external momentum input are of considerable interest to the plasma physics community. This paper documents a substantial change in both the magnitude of the core-rotation frequency, −1 < ω(r/a = 0) < +10 kHz, and the sign of rotation shear at mid-radius, u' = −R2 dω/dr/vth,i, which varies in the range −0.6 < u' < +0.8 in response to very small changes in the electron density. In 0.8 MA, 5.4 T Alcator C-Mod L-mode plasmas using 1.2 MW of on-axis ion-cyclotron resonance heating, plasmas with line-averaged densities in the range
exhibit a transition from a peaked intrinsic rotation profile to one that is hollow. Gradient scale lengths of the temperature and density profiles, the drive for plasma turbulence thought to play a role in intrinsic rotation, are indistinguishable within experimental uncertainties between the plasmas, and linear stability analysis using GYRO shows the plasmas to be in the ion temperature gradient-dominated turbulence regime. The impact of changes in the rotation profile in response to minor changes under target plasma conditions is discussed in relation to established analysis techniques and cross-machine rotation scaling studies, with comparisons made with existing ASDEX-Upgrade work on intrinsic rotation shear.