8357797: Use StructuredTaskScopeImpl.ST_NEW for state init

Reviewed-by: alanb
This commit is contained in:
Aleksey Shipilev 2025-05-27 09:43:07 +00:00
parent aea32ec506
commit b9db99d7f7

View File

@ -67,6 +67,7 @@ final class StructuredTaskScopeImpl<T, R> implements StructuredTaskScope<T, R> {
this.joiner = joiner;
this.threadFactory = threadFactory;
this.flock = ThreadFlock.open((name != null) ? name : Objects.toIdentityString(this));
this.state = ST_NEW;
}
/**