< prev index next >

src/java.base/share/classes/java/io/FileDescriptor.java

Print this page
@@ -205,15 +205,15 @@
       *        or because the system cannot guarantee that all the
       *        buffers have been synchronized with physical media.
       * @since     1.1
       */
      public void sync() throws SyncFailedException {
-         long comp = Blocker.begin();
+         boolean attempted = Blocker.begin();
          try {
              sync0();
          } finally {
-             Blocker.end(comp);
+             Blocker.end(attempted);
          }
      }
  
      /* fsync/equivalent this file descriptor */
      private native void sync0() throws SyncFailedException;
< prev index next >