src/java.base/share/classes/java/util/concurrent/PriorityBlockingQueue.java
changeset 58657 6252605fb005
parent 52427 3c6aa484536c
equal deleted inserted replaced
58656:7322c48a84cf 58657:6252605fb005
   171     private final ReentrantLock lock = new ReentrantLock();
   171     private final ReentrantLock lock = new ReentrantLock();
   172 
   172 
   173     /**
   173     /**
   174      * Condition for blocking when empty.
   174      * Condition for blocking when empty.
   175      */
   175      */
       
   176     @SuppressWarnings("serial") // Classes implementing Condition may be serializable.
   176     private final Condition notEmpty = lock.newCondition();
   177     private final Condition notEmpty = lock.newCondition();
   177 
   178 
   178     /**
   179     /**
   179      * Spinlock for allocation, acquired via CAS.
   180      * Spinlock for allocation, acquired via CAS.
   180      */
   181      */