Originally posted by swuferhong November 27, 2024
Currently, in LazyMemorySegmentPool, we use a List with a lock to manage cachePages. This approach requires the use of locks and manual writing await logic, which is not as efficient as using a BlockingQueue. Moreover, replacing it with a BlockingQueue would not introduce any potential correctness issues.