Density relaxations across the glass-transition under equilibrium and non-equilibrium conditions