File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
libs/core/src/main/java/org/elasticsearch/core Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 1818import java .util .concurrent .TimeUnit ;
1919import java .util .function .Supplier ;
2020
21- // FIXME: Build thread local shim for this to toggle using FeatureFlag
2221public interface ObjectPool <T > {
2322 static <T > ObjectPool <T > withInitial (Supplier <T > supplier , Duration timeout ) {
2423 return new HybridPool <>(supplier , timeout .toNanos ());
@@ -83,7 +82,7 @@ final class UnboundedObjectPool<T> implements ObjectPool<T> {
8382
8483 static {
8584 try {
86- VAR_HANDLE = MethodHandles .lookup ().findVarHandle (ObjectPool .class , "lastTimeoutCheckNanos" , long .class );
85+ VAR_HANDLE = MethodHandles .lookup ().findVarHandle (UnboundedObjectPool .class , "lastTimeoutCheckNanos" , long .class );
8786 } catch (ReflectiveOperationException e ) {
8887 throw new ExceptionInInitializerError (e );
8988 }
You can’t perform that action at this time.
0 commit comments