Hinduism does not have anything like that. The worst that a king or a society can do is to exile a person outside the city (Candala - outcaste) for social crimes. Having a different view is never a cause for punishment. I am a Hindu and as you know, I am happily a strong atheist. Of course, heinous crimes like murder, robbery, rape, etc., can attract death penalty. The current Indian way is death by hanging, and no other.
That is not threat, that is 'karma phala' (fruits of one's action). And there is no deliverance from 'Karma phala' (like in Christianity and Islam). That has to be borne. Even the Gods cannot change it. But then, one is given more chances through reincarnation. Of course, I do not believe in all that.