On Sat, 8 May 2021 19:48:39 GMT, Xue-Lei Andrew Fan <xue...@openjdk.org> wrote:
>> I'd like to keep my code as-is. We still need invalidate() if entry is not >> valid (see remove() operation). > > Did you notice that entry.isValid() implementation has already call > invalidate() if the entry is not valid? I didn't. You are right. Updated code as you suggested. Thank you. ------------- PR: https://git.openjdk.java.net/jdk/pull/3664