K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-09-24T13:01:01.536006Z K 7 svn:log V 131 inline testcancel() into thr_cancel_leave(), because cancel_pending is almost false, this makes a slight better branch predicting. END