
com.google.common.util.concurrent.Striped.class Maven / Gradle / Ivy
???? 4
)com/google/common/util/concurrent/Striped smear (I)I
ceilToPowerOfTwo
()V
java/lang/Object
com/google/common/collect/Lists newArrayList +(Ljava/lang/Iterable;)Ljava/util/ArrayList; java/util/List isEmpty ()Z
! " 'com/google/common/collect/ImmutableList of +()Lcom/google/common/collect/ImmutableList; $ % & size ()I ( ) * get (I)Ljava/lang/Object;
, - . indexFor (Ljava/lang/Object;)I
0 1 2 3 4 java/util/Arrays sort ([I)V
6 7 * getAt 9 : ; set '(ILjava/lang/Object;)Ljava/lang/Object;
= > ? @ A java/util/Collections unmodifiableList "(Ljava/util/List;)Ljava/util/List; C 8com/google/common/util/concurrent/Striped$CompactStriped
B E F R(ILcom/google/common/base/Supplier;Lcom/google/common/util/concurrent/Striped$1;)V H ) I #()Lcom/google/common/base/Supplier;
K L M custom O(ILcom/google/common/base/Supplier;)Lcom/google/common/util/concurrent/Striped; H
P Q M lazyWeakCustom S :com/google/common/util/concurrent/Striped$SmallLazyStriped
R U V %(ILcom/google/common/base/Supplier;)V X :com/google/common/util/concurrent/Striped$LargeLazyStriped
W U [ ) \ $(I)Lcom/google/common/base/Supplier; [ H H a b c d e java/math/RoundingMode CEILING Ljava/math/RoundingMode;
g h i j k com/google/common/math/IntMath log2 (ILjava/math/RoundingMode;)I m java/util/concurrent/Semaphore
l o p (IZ)V r 9com/google/common/util/concurrent/Striped$PaddedSemaphore
q t u (I)V w (java/util/concurrent/locks/ReentrantLock
v y z (Z)V LARGE_LAZY_CUTOFF I
ConstantValue ALL_SET???? Code LineNumberTable LocalVariableTable this +Lcom/google/common/util/concurrent/Striped; LocalVariableTypeTable 0Lcom/google/common/util/concurrent/Striped; &(Ljava/lang/Object;)Ljava/lang/Object; MethodParameters key Signature (Ljava/lang/Object;)TL; index (I)TL; bulkGet *(Ljava/lang/Iterable;)Ljava/lang/Iterable; i
currentStripe keys Ljava/lang/Iterable; result Ljava/util/List; stripes [I previousStripe asStripes )Ljava/lang/Iterable<+Ljava/lang/Object;>; $Ljava/util/List; Ljava/util/List;
StackMapTable ? D(Ljava/lang/Iterable<+Ljava/lang/Object;>;)Ljava/lang/Iterable; supplier !Lcom/google/common/base/Supplier; &Lcom/google/common/base/Supplier; o(ILcom/google/common/base/Supplier;)Lcom/google/common/util/concurrent/Striped; lock .(I)Lcom/google/common/util/concurrent/Striped; Q(I)Lcom/google/common/util/concurrent/Striped; lazyWeakLock semaphore /(II)Lcom/google/common/util/concurrent/Striped; permits Q(II)Lcom/google/common/util/concurrent/Striped; lazyWeakSemaphore
readWriteLock Z(I)Lcom/google/common/util/concurrent/Striped; lazyWeakReadWriteLock x hashCode lambda$lazyWeakSemaphore$2 #(I)Ljava/util/concurrent/Semaphore; lambda$semaphore$1 lambda$lazyWeakLock$0 #()Ljava/util/concurrent/locks/Lock; 0(Lcom/google/common/util/concurrent/Striped$1;)V x0 -Lcom/google/common/util/concurrent/Striped$1;
access$200
access$300 (Ljava/lang/Object;
SourceFile Striped.java RuntimeVisibleAnnotations CLcom/google/common/util/concurrent/ElementTypesAreNonnullByDefault; RuntimeInvisibleAnnotations 0Lcom/google/common/annotations/J2ktIncompatible; /Lcom/google/common/annotations/GwtIncompatible; BootstrapMethods ? ()Ljava/lang/Object; ?
? ? 4com/google/common/util/concurrent/Striped$PaddedLock ? ?
? ? ? ?
? ? ? ? "()Ljava/util/concurrent/Semaphore; ?
? ? ? ?
? ? 1java/util/concurrent/locks/ReentrantReadWriteLock ? ,()Ljava/util/concurrent/locks/ReadWriteLock; ?
? ? ?com/google/common/util/concurrent/Striped$WeakSafeReadWriteLock ?
? ? ? ? ? "java/lang/invoke/LambdaMetafactory metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; InnerClasses CompactStriped ? +com/google/common/util/concurrent/Striped$1 SmallLazyStriped LargeLazyStriped PaddedSemaphore
PaddedLock ? ;com/google/common/util/concurrent/Striped$PowerOfTwoStriped PowerOfTwoStriped ? ;com/google/common/util/concurrent/Striped$WeakSafeCondition WeakSafeCondition ? 6com/google/common/util/concurrent/Striped$WeakSafeLock WeakSafeLock WeakSafeReadWriteLock ? %java/lang/invoke/MethodHandles$Lookup ? java/lang/invoke/MethodHandles Lookup! { | } ~ | } ?
? A *? ? ? ` ? ? ? ? ? ? ) ? ? ? ? ? 7 * ? ? ? ? - . ? ? % &