optimize raise not to make a syscall for getting tid