ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/jsr166y/LinkedTransferQueue.java
(Generate patch)

Comparing jsr166/src/jsr166y/LinkedTransferQueue.java (file contents):
Revision 1.52 by dl, Sat Oct 24 14:57:32 2009 UTC vs.
Revision 1.53 by jsr166, Tue Oct 27 19:59:43 2009 UTC

# Line 1192 | Line 1192 | public class LinkedTransferQueue<E> exte
1192          }
1193      }
1194  
1195
1195      // Unsafe mechanics
1196  
1197      private static final sun.misc.Unsafe UNSAFE = getUnsafe();
# Line 1215 | Line 1214 | public class LinkedTransferQueue<E> exte
1214          }
1215      }
1216  
1217 +    /**
1218 +     * Returns a sun.misc.Unsafe.  Suitable for use in a 3rd party package.
1219 +     * Replace with a simple call to Unsafe.getUnsafe when integrating
1220 +     * into a jdk.
1221 +     *
1222 +     * @return a sun.misc.Unsafe
1223 +     */
1224      private static sun.misc.Unsafe getUnsafe() {
1225          try {
1226              return sun.misc.Unsafe.getUnsafe();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines