Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ synchronized void start() {

memoryRegion = memoryProvider.nextRegion();

GridUnsafe.setMemory(memoryRegion.address(), memoryRegion.size(), (byte)0);

maxPages = (int)(maxMemorySize / pageSize);

pageSlots = new DirectMemoryPageSlot[maxPages];
Expand Down Expand Up @@ -471,8 +473,8 @@ else if (record instanceof PageSnapshot) {

page.lock();

try {
GridUnsafe.copyHeapOffheap(snapshot.pageData(), GridUnsafe.BYTE_ARR_OFF, page.address(), pageSize);
try {
GridUnsafe.copyHeapOffheap(snapshot.pageData(), GridUnsafe.BYTE_ARR_OFF, page.address(), pageSize);

page.changeHistory().clear();

Expand Down Expand Up @@ -694,7 +696,7 @@ private boolean comparePages(FullPageId fullPageId, DirectMemoryPage expPage, lo
}

if (!locBuf.equals(rmtBuf)) {
log.error("Page buffers are not equals: " + fullPageId);
log.error("Page buffers are not equals [fullPageId=" + fullPageId + ", pageIo=" + pageIo + ']');

dumpDiff(locBuf, rmtBuf);

Expand Down