jdk/src/java.base/share/classes/sun/nio/ch/IOVecWrapper.java
changeset 36435 0408881ad616
parent 35641 da165fd9c886
--- a/jdk/src/java.base/share/classes/sun/nio/ch/IOVecWrapper.java	Wed Mar 09 13:37:30 2016 +0000
+++ b/jdk/src/java.base/share/classes/sun/nio/ch/IOVecWrapper.java	Wed Mar 09 21:17:06 2016 +0100
@@ -26,7 +26,7 @@
 package sun.nio.ch;
 
 import java.nio.ByteBuffer;
-import jdk.internal.ref.Cleaner;
+import jdk.internal.ref.CleanerFactory;
 
 
 /**
@@ -101,7 +101,7 @@
         }
         if (wrapper == null) {
             wrapper = new IOVecWrapper(size);
-            Cleaner.create(wrapper, new Deallocator(wrapper.vecArray));
+            CleanerFactory.cleaner().register(wrapper, new Deallocator(wrapper.vecArray));
             cached.set(wrapper);
         }
         return wrapper;