1
1
mirror of https://github.com/MarginaliaSearch/MarginaliaSearch.git synced 2025-10-05 21:22:39 +02:00

(pool) Fix SegmentMemoryPage storage

This commit is contained in:
Viktor Lofgren
2025-08-13 13:17:14 +02:00
parent 4245ac4c07
commit 6fe6de766d

View File

@@ -52,7 +52,7 @@ public class BufferPool implements AutoCloseable {
throw new RuntimeException(e);
}
this.arena = Arena.ofShared();
this.pages = new UnsafeMemoryPage[poolSize];
this.pages = new MemoryPage[poolSize];
MemorySegment memoryArea = arena.allocate((long) pageSizeBytes*poolSize, 4096);
for (int i = 0; i < pages.length; i++) {