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:
@@ -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++) {
|
||||
|
Reference in New Issue
Block a user