- * Only the {@link #safeInstance() safe instance} is guaranteed to work on your -@@ -55,7 +53,6 @@ public final class LZ4Factory { - } - - private static LZ4Factory NATIVE_INSTANCE, -- JAVA_UNSAFE_INSTANCE, - JAVA_SAFE_INSTANCE; - - /** -@@ -107,42 +104,15 @@ public final class LZ4Factory { - return JAVA_SAFE_INSTANCE; - } - -- /** -- * Returns a {@link LZ4Factory} instance that returns compressors and -- * decompressors that may use {@link sun.misc.Unsafe} to speed up compression -- * and decompression. -- * -- * @return a {@link LZ4Factory} instance that returns compressors and -- * decompressors that may use {@link sun.misc.Unsafe} to speed up compression -- * and decompression. -- */ -- public static synchronized LZ4Factory unsafeInstance() { -- if (JAVA_UNSAFE_INSTANCE == null) { -- JAVA_UNSAFE_INSTANCE = instance("JavaUnsafe"); -- } -- return JAVA_UNSAFE_INSTANCE; -- } -- - /** - * Returns the fastest available {@link LZ4Factory} instance which does not -- * rely on JNI bindings. It first tries to load the -- * {@link #unsafeInstance() unsafe instance}, and then the -- * {@link #safeInstance() safe Java instance} if the JVM doesn't have a -- * working {@link sun.misc.Unsafe}. -+ * rely on JNI bindings. It loads {@link #safeInstance() safe Java instance} - * - * @return the fastest available {@link LZ4Factory} instance which does not - * rely on JNI bindings. - */ - public static LZ4Factory fastestJavaInstance() { -- if (Utils.isUnalignedAccessAllowed()) { -- try { -- return unsafeInstance(); -- } catch (Throwable t) { -- return safeInstance(); -- } -- } else { - return safeInstance(); -- } - } - - /** -@@ -249,9 +219,9 @@ public final class LZ4Factory { - *
- * Only the {@link #safeInstance() safe instance} is guaranteed to work on your
-@@ -51,7 +49,6 @@ public final class XXHashFactory {
- }
-
- private static XXHashFactory NATIVE_INSTANCE,
-- JAVA_UNSAFE_INSTANCE,
- JAVA_SAFE_INSTANCE;
-
- /**
-@@ -96,40 +93,15 @@ public final class XXHashFactory {
- return JAVA_SAFE_INSTANCE;
- }
-
-- /**
-- * Returns a {@link XXHashFactory} that returns {@link XXHash32} instances that
-- * may use {@link sun.misc.Unsafe} to speed up hashing.
-- *
-- * @return a {@link XXHashFactory} that returns {@link XXHash32} instances that
-- * may use {@link sun.misc.Unsafe} to speed up hashing.
-- */
-- public static synchronized XXHashFactory unsafeInstance() {
-- if (JAVA_UNSAFE_INSTANCE == null) {
-- JAVA_UNSAFE_INSTANCE = instance("JavaUnsafe");
-- }
-- return JAVA_UNSAFE_INSTANCE;
-- }
--
- /**
- * Returns the fastest available {@link XXHashFactory} instance which does not
-- * rely on JNI bindings. It first tries to load the
-- * {@link #unsafeInstance() unsafe instance}, and then the
-- * {@link #safeInstance() safe Java instance} if the JVM doesn't have a
-- * working {@link sun.misc.Unsafe}.
-+ * rely on JNI bindings. It loads {@link #safeInstance() safe instance}
- *
- * @return the fastest available {@link XXHashFactory} instance which does not
- * rely on JNI bindings.
- */
- public static XXHashFactory fastestJavaInstance() {
-- if (Utils.isUnalignedAccessAllowed()) {
-- try {
-- return unsafeInstance();
-- } catch (Throwable t) {
-- return safeInstance();
-- }
-- } else {
- return safeInstance();
-- }
- }
-
- /**
-diff --git a/src/test/net/jpountz/lz4/Instances.java b/src/test/net/jpountz/lz4/Instances.java
-index b9caae5..44f7809 100644
---- a/src/test/net/jpountz/lz4/Instances.java
-+++ b/src/test/net/jpountz/lz4/Instances.java
-@@ -21,21 +21,17 @@ enum Instances {
- static LZ4Compressor[] COMPRESSORS = new LZ4Compressor[] {
- LZ4Factory.nativeInstance().fastCompressor(),
- LZ4Factory.nativeInstance().highCompressor(),
-- LZ4Factory.unsafeInstance().fastCompressor(),
-- LZ4Factory.unsafeInstance().highCompressor(),
- LZ4Factory.safeInstance().fastCompressor(),
- LZ4Factory.safeInstance().highCompressor()
- };
-
- static LZ4FastDecompressor[] FAST_DECOMPRESSORS = new LZ4FastDecompressor[] {
- LZ4Factory.nativeInstance().fastDecompressor(),
-- LZ4Factory.unsafeInstance().fastDecompressor(),
- LZ4Factory.safeInstance().fastDecompressor()
- };
-
- static LZ4SafeDecompressor[] SAFE_DECOMPRESSORS = new LZ4SafeDecompressor[] {
- LZ4Factory.nativeInstance().safeDecompressor(),
-- LZ4Factory.unsafeInstance().safeDecompressor(),
- LZ4Factory.safeInstance().safeDecompressor()
- };
-
-diff --git a/src/test/net/jpountz/lz4/LZ4FactoryTest.java b/src/test/net/jpountz/lz4/LZ4FactoryTest.java
-index c4ef05e..b8b33d7 100644
---- a/src/test/net/jpountz/lz4/LZ4FactoryTest.java
-+++ b/src/test/net/jpountz/lz4/LZ4FactoryTest.java
-@@ -21,17 +21,13 @@ public class LZ4FactoryTest extends TestCase {
- public void test() {
- assertEquals(LZ4JNICompressor.INSTANCE, LZ4Factory.nativeInstance().fastCompressor());
- assertEquals(LZ4HCJNICompressor.INSTANCE, LZ4Factory.nativeInstance().highCompressor());
-- assertEquals(LZ4JavaUnsafeCompressor.INSTANCE, LZ4Factory.unsafeInstance().fastCompressor());
-- assertEquals(LZ4HCJavaUnsafeCompressor.INSTANCE, LZ4Factory.unsafeInstance().highCompressor());
- assertEquals(LZ4JavaSafeCompressor.INSTANCE, LZ4Factory.safeInstance().fastCompressor());
- assertEquals(LZ4HCJavaSafeCompressor.INSTANCE, LZ4Factory.safeInstance().highCompressor());
-
- assertEquals(LZ4JNIFastDecompressor.INSTANCE, LZ4Factory.nativeInstance().fastDecompressor());
-- assertEquals(LZ4JavaUnsafeFastDecompressor.INSTANCE, LZ4Factory.unsafeInstance().fastDecompressor());
- assertEquals(LZ4JavaSafeFastDecompressor.INSTANCE, LZ4Factory.safeInstance().fastDecompressor());
-
- assertEquals(LZ4JNISafeDecompressor.INSTANCE, LZ4Factory.nativeInstance().safeDecompressor());
-- assertEquals(LZ4JavaUnsafeSafeDecompressor.INSTANCE, LZ4Factory.unsafeInstance().safeDecompressor());
- assertEquals(LZ4JavaSafeSafeDecompressor.INSTANCE, LZ4Factory.safeInstance().safeDecompressor());
- }
-
-diff --git a/src/test/net/jpountz/xxhash/XXHashFactoryTest.java b/src/test/net/jpountz/xxhash/XXHashFactoryTest.java
-index c410220..2aae562 100644
---- a/src/test/net/jpountz/xxhash/XXHashFactoryTest.java
-+++ b/src/test/net/jpountz/xxhash/XXHashFactoryTest.java
-@@ -21,14 +21,10 @@ public class XXHashFactoryTest extends TestCase {
- public void test() {
- assertEquals(XXHash32JNI.INSTANCE, XXHashFactory.nativeInstance().hash32());
- assertTrue(XXHashFactory.nativeInstance().newStreamingHash32(0) instanceof StreamingXXHash32JNI);
-- assertEquals(XXHash32JavaUnsafe.INSTANCE, XXHashFactory.unsafeInstance().hash32());
-- assertTrue(XXHashFactory.unsafeInstance().newStreamingHash32(0) instanceof StreamingXXHash32JavaUnsafe);
- assertEquals(XXHash32JavaSafe.INSTANCE, XXHashFactory.safeInstance().hash32());
- assertTrue(XXHashFactory.safeInstance().newStreamingHash32(0) instanceof StreamingXXHash32JavaSafe);
- assertEquals(XXHash64JNI.INSTANCE, XXHashFactory.nativeInstance().hash64());
- assertTrue(XXHashFactory.nativeInstance().newStreamingHash64(0) instanceof StreamingXXHash64JNI);
-- assertEquals(XXHash64JavaUnsafe.INSTANCE, XXHashFactory.unsafeInstance().hash64());
-- assertTrue(XXHashFactory.unsafeInstance().newStreamingHash64(0) instanceof StreamingXXHash64JavaUnsafe);
- assertEquals(XXHash64JavaSafe.INSTANCE, XXHashFactory.safeInstance().hash64());
- assertTrue(XXHashFactory.safeInstance().newStreamingHash64(0) instanceof StreamingXXHash64JavaSafe);
- }
diff --git a/1.7.1.tar.gz b/1.7.1.tar.gz
deleted file mode 100644
index d5b1498..0000000
Binary files a/1.7.1.tar.gz and /dev/null differ
diff --git a/1.8.0.tar.gz b/1.8.0.tar.gz
new file mode 100644
index 0000000..2f734af
Binary files /dev/null and b/1.8.0.tar.gz differ
diff --git a/3-remove-randomizedtesting-tests.patch b/3-remove-randomizedtesting-tests.patch
deleted file mode 100644
index c7d2282..0000000
--- a/3-remove-randomizedtesting-tests.patch
+++ /dev/null
@@ -1,1689 +0,0 @@
-diff --git a/.classpath b/.classpath
-index 058b340..c48898b 100644
---- a/.classpath
-+++ b/.classpath
-@@ -7,7 +7,5 @@
-