8250240: Address use of default constructors in the java.util.concurrent

Reviewed-by: martin, lancea
This commit is contained in:
Joe Darcy 2020-07-23 22:50:12 -07:00
parent 1f91e0ebe3
commit 0ef80293f9
5 changed files with 25 additions and 0 deletions

View file

@ -242,6 +242,11 @@ public abstract class ForkJoinTask<V> implements Future<V>, Serializable {
private static final int SIGNAL = 1 << 16; // true if joiner waiting
private static final int SMASK = 0xffff; // short bits for tags
/**
* Constructor for subclasses to call.
*/
public ForkJoinTask() {}
static boolean isExceptionalStatus(int s) { // needed by subclasses
return (s & THROWN) != 0;
}