lordcheng10 edited a comment on pull request #3061:
URL: https://github.com/apache/bookkeeper/pull/3061#issuecomment-1042623757


   When clear, also shrink?  or fallback to initialize size  ?@merlimat 
   
        void clear() {
               long stamp = writeLock();
               try {
                   Arrays.fill(table, EmptyKey);
                   this.size = 0;
                   this.usedBuckets = 0;
               } finally {
                   unlockWrite(stamp);
               }
           }


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to