src/java.base/share/classes/sun/nio/fs/Cancellable.java

Print this page
rev 12972 : 8140606: Update library code to use internal Unsafe
Reviewed-by: duke

*** 24,34 **** */ package sun.nio.fs; import sun.misc.ManagedLocalsThread; ! import sun.misc.Unsafe; import java.util.concurrent.ExecutionException; /** * Base implementation of a task (typically native) that polls a memory location * during execution so that it may be aborted/cancelled before completion. The --- 24,34 ---- */ package sun.nio.fs; import sun.misc.ManagedLocalsThread; ! import jdk.internal.misc.Unsafe; import java.util.concurrent.ExecutionException; /** * Base implementation of a task (typically native) that polls a memory location * during execution so that it may be aborted/cancelled before completion. The