# | 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(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |