src/main/java/org/opensearch/knn/index/memory/NativeMemoryAllocation.java [119:125]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        public void close() {
            executor.execute(() -> {
                writeLock();
                cleanup();
                writeUnlock();
            });
        }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/org/opensearch/knn/index/memory/NativeMemoryAllocation.java [250:256]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        public void close() {
            executor.execute(() -> {
                writeLock();
                cleanup();
                writeUnlock();
            });
        }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



