The relation between the observed mass distribution for compact stars and the mechanism for supernova explosions