White dwarfs are among the most compact objects in the cosmos, though not as dense as a black hole. Stars with up to eight times the mass of our sun appear destined to end up as a white dwarf.