sync with openjdk
prefer throwing ExceptionInInitializerError from <clinit> to throwing Error
8186265: Make toString() methods of "task" objects more useful
incorporate upstream VarHandle changes
Use new CAS variants when applicable
whitespace
VarHandles conversion; pass 1
s~\bsun\.(misc\.Unsafe)\b~jdk.internal.$1~g; s~\bputOrdered([A-Za-z]+)\b~put${1}Release~g
compare longs against 0L, not 0
JDK-8074773: Reduce the risk of rare disastrous classloading in first call to LockSupport.park
fix JDK-8073704
standardize Unsafe mechanics; slightly smaller bytecode
use ReflectiveOperationException for Unsafe mechanics
standardize import statement order
nanoTime may be slow; recheck before parking
Fix underflow when timeout = Long.MIN_VALUE
javadoc clarification
use new coding style for Unsafe operations
consistent use of "@return {@code true}"
cancel(true) should take possible SecurityException on interrupt() into account
whitespace
Guard against security exceptions
s/lastTime/deadline/g
avoid introducing locals just for warning suppression
Don't time out if detectably completing
remove dead store
stop trying to clear cancellation interrupt
clarify comment for Thread.interrupted
document the tricky order dependencies
avoid return inside try-finally
coding style
tighten comment
comment out assert statements
javac warning suppression
use try-finally to reset runner back to null; set/setException may throw
refactor into handlePossibleCancellationInterrupt
null callable only in finishCompletion
whitespace
coding style
only call TimeUnit.toNanos if value needed
removeWaiters does only one traversal in the common case
small javadoc tidying
very small javadoc improvement
refactor out setCompletion
Null out callable after use
Improve removeWaiter
coding style
fix a bug in linked list traversal code
s/UNDECIDED/NEW/
document missing state transition
fix race causing interrupt to not be delivered
use ordinary ordered integers for state values
introduce INTERRUPTING->INTERRUPTED state transition
only reset runner to null after state is decided
reintroduce a constant, UNDECIDED, for state 0
only call Thread.currentThread if necessary
only call Thread.currentThread if necessary
style update
whitespace
Reimplement to avoid surprises about interrupt status on cancellation
remove 6270645 bug workaround
very small doc improvement
Update Creative Commons license URL in legal notices
Future<Object> => Future<Void>
Fix javadoc code samples to use <pre> {@code so that we can replace < with <, etc.
Sync with OpenJDK; untabify
6415572: FutureTask run method can swallow exceptions from done method
6464365: FutureTask.{set,setException} not called by run()
whitespace
whitespace
Add code comments explaining last change
Avoid stale thread reference
Improve responsiveness and handling of interrupts
6378729: Remove workaround for 6280605
Edit pass for happens-before descriptions
Formatting tweaks to happens-before markup
Happens-before markup
workaround for javadoc bug 6270645
CancellationException
Add serial ids
doc fixes
Better integrate RunnableFuture etc specs
Overridable RunnableFuture creation for AbstractExecutorService. OverridableRunnableScheduledFuture decoration for ScheduledThreadPoolExecutor.
trailing whitespace
Clarify previous change
Ensure started cancelled tasks have interrupt set
remove trailing whitespace
catch( -> catch (
Retry CAS to avoid failure window.
Documentation improvements
Wording fixes and improvements
Wording improvements and fixes
Javadoc fixes
Simplify/shorten AQS method names
Cosmetics
replace isFirst param with isFirst method
Avoid timeout problems in fair modes; improve AQS method names
Use ACS in FutureTask; doc improvements
Headers reference Creative Commons
Adapt to AbstractQueuedSynchronizer
cache finals across volatiles; avoid readResolve; doc improvments; timed invokeAll interleaves
Simplify FutureTask and AbstractExecutorService internals; improve docs
Streamline status settting
Documentation improvements
Documentation improvements
Documentation improvements
Avoid needing package-private fields
documentation touch-ups
Revised tests for revised Future classes
Wording and typo cleanup pass
Added docs for type params
Spellcheck
Adapt AbstractQueue changes; Conditionalize CancellableTask.reset; new TimeUnit methods
Removed non-standard tags and misc javadoc cleanup
Misc doc touch-ups
Fix broken doc links
Removed extraneous Cancellable and Runnable from implements list.
Added missing javadoc tags; minor reformatting
New ScheduledExecutor; CancellableTask
re-check-in initial implementations
Moved main source rooted at . to ./src/main Moved test source rooted at ./etc/testcases to ./src/test
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.