mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8250240: Address use of default constructors in the java.util.concurrent
Reviewed-by: martin, lancea
This commit is contained in:
parent
1f91e0ebe3
commit
0ef80293f9
5 changed files with 25 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue