What happens if you eat a cherry pit?

Usually nothing . You will just pass it out the other end in the stool or it will dissolve somewhat during digestion. Nothing to worry about.