We will suspend the current thread if two conditions are satisfied: process_exiting != 0 and process_exiting != current thread id. But, yes, pr_ex isn't really needed, as we can use process_exiting directly. Here's the updated webrev: http://cr.openjdk.java.net/~igerasim/8145127/01/webrev/I still see pr_ex ??
Oops. Forgot to 'hg qrefresh' before generating the webrev. The webrev has just been updated in place. Sincerely yours, Ivan