Once these stars reach the tip of the giant branch, they become unstable and blow off their outer layers to form the objects known as planetary nebulae while the core of the stars shrinks, ultimately forming a white dwarf.