8234131: Miscellaneous changes imported from jsr166 CVS 2021-01

8257671: ThreadPoolExecutor.Discard*Policy: rejected tasks are not cancelled

Reviewed-by: alanb, prappo, dl
This commit is contained in:
Martin Buchholz 2021-01-09 21:59:27 +00:00
parent 63e3bd7613
commit 270014ab4e
41 changed files with 273 additions and 207 deletions

View file

@ -137,13 +137,13 @@ import jdk.internal.misc.Unsafe;
* of exclusive synchronization takes the form:
*
* <pre>
* Acquire:
* <em>Acquire:</em>
* while (!tryAcquire(arg)) {
* <em>enqueue thread if it is not already queued</em>;
* <em>possibly block current thread</em>;
* }
*
* Release:
* <em>Release:</em>
* if (tryRelease(arg))
* <em>unblock the first queued thread</em>;
* </pre>