Energy-efficient mechanisms for managing on-chip storage in throughput processors