ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agoncha...@apache.org
Subject ignite git commit: IGNITE-7453 Use GridUnsafe.cleanDirectBuffer in PageSnapshot
Date Wed, 17 Jan 2018 12:27:11 GMT
Repository: ignite
Updated Branches:
  refs/heads/master b2346402a -> 107ea875c


IGNITE-7453 Use GridUnsafe.cleanDirectBuffer in PageSnapshot


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/107ea875
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/107ea875
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/107ea875

Branch: refs/heads/master
Commit: 107ea875c643cd23f270b53715578d8eff51173f
Parents: b234640
Author: Alexey Goncharuk <alexey.goncharuk@gmail.com>
Authored: Wed Jan 17 15:26:03 2018 +0300
Committer: Alexey Goncharuk <alexey.goncharuk@gmail.com>
Committed: Wed Jan 17 15:26:57 2018 +0300

----------------------------------------------------------------------
 .../apache/ignite/internal/pagemem/wal/record/PageSnapshot.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/107ea875/modules/core/src/main/java/org/apache/ignite/internal/pagemem/wal/record/PageSnapshot.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/pagemem/wal/record/PageSnapshot.java
b/modules/core/src/main/java/org/apache/ignite/internal/pagemem/wal/record/PageSnapshot.java
index 6740221..126b845 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/pagemem/wal/record/PageSnapshot.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/pagemem/wal/record/PageSnapshot.java
@@ -25,7 +25,6 @@ import org.apache.ignite.internal.pagemem.FullPageId;
 import org.apache.ignite.internal.processors.cache.persistence.tree.io.PageIO;
 import org.apache.ignite.internal.util.GridUnsafe;
 import org.apache.ignite.internal.util.tostring.GridToStringExclude;
-import sun.nio.ch.DirectBuffer;
 
 /**
  *
@@ -98,7 +97,7 @@ public class PageSnapshot extends WALRecord {
                 ", pageData = " + Arrays.toString(pageData) + ", super=" + super.toString()
+ "]";
         }
         finally {
-            ((DirectBuffer)buf).cleaner().clean();
+            GridUnsafe.cleanDirectBuffer(buf);
         }
     }
 }


Mime
View raw message