Commit Graph

405 Commits

Author SHA1 Message Date
Taro L. Saito 71f1fd8b39 Revert "SunOS/sparcv9/libsnappyjava.so" 2015-05-21 15:26:16 +09:00
vharseko 14a82e8dac src/main/resources/org/xerial/snappy/native/SunOS/sparcv9/libsnappyjava.so: ELF 64-bit MSB shared object, SPARC V9, total store ordering, version 1 (SYSV), dynamically linked, stripped 2015-05-20 00:23:11 +03:00
Taro L. Saito ac168dfdce Simlify incomplete header handling 2015-05-18 18:13:49 +09:00
Taro L. Saito 58016fd78d Remove findbugs reported problems 2015-05-18 18:08:31 +09:00
Taro L. Saito aee2b85253 Removed unused variable 2015-05-18 18:03:41 +09:00
Taro L. Saito 66115a49ad Applied the same style with https://github.com/airlift/codestyle 2015-05-18 16:51:53 +09:00
Taro L. Saito 3cf34325d7 Use LF as newline 2015-05-18 15:36:06 +09:00
Josh Rosen 38ec9fd03b Null buffer refs when closing SnappyOutputStream. 2015-05-14 11:22:34 -07:00
Josh Rosen dcdada2ed4 Throw IOException when writing to / flushing closed SnappyOutputStreams. 2015-05-14 10:59:16 -07:00
Josh Rosen 2b6c8dc896 Make close() idempotent (fixes #107). 2015-05-14 00:36:00 -07:00
Taro L. Saito d1745ebfcb Merge pull request #104 from xerial/chunked-input
Concatenated input support
2015-05-13 10:51:37 +09:00
Aleksey Dergunov 708752efa5 Fix FileNotFoundException while writing the library file 2015-05-12 20:01:48 +04:00
Taro L. Saito 62fe335057 Fix javdoc 2015-05-12 09:57:35 +09:00
Taro L. Saito b1b827695c #103: Embed /org/xerial/snappy/VERSION properly 2015-05-12 09:57:03 +09:00
Taro L. Saito 1c702ba366 #103: Support reading concatenated streams in SnappyInputStream 2015-05-12 01:43:23 +09:00
Taro L. Saito 6d9925ba36 Fixes for #100 2015-04-14 15:43:50 +09:00
Taro L. Saito 3fe32512e4 Use specified block size instead of MIN_BLOCK_SIZE 2015-04-14 15:22:20 +09:00
Bryan Chan 61691b8fe6 Support Linux on IBM z Systems 2015-03-14 20:46:40 -04:00
Taro L. Saito f446a39a00 Fixes #37: Native library for raspberry-pi 2014-11-27 06:28:22 +00:00
Davies Liu f48a29c4ae fix memory leak in SnappyOutputStream 2014-10-26 01:06:20 -07:00
Taro L. Saito f0d7f62881 #89: Add SnappyIOException to distinguish empty input, incompatible format version, etc. 2014-10-23 12:42:12 +09:00
Taro L. Saito 164e51da2e #89: Fixes SnappyInputStream not to throw an IOException when the input is empty 2014-10-23 12:12:39 +09:00
Taro L. Saito dfc9322a5b #88: Applied a patch from @ewencp to fix missing reference problem of CachedBufferAllocator 2014-10-22 09:53:13 +09:00
Taro L. Saito 7b86642f75 Fixes #88 by introducing thread-safe BufferAllocator 2014-10-22 00:05:13 +09:00
Taro L. Saito 8b83f6e2d4 Using buffer recycler to minimize memory allocation cost 2014-07-19 05:29:11 +09:00
Taro L. Saito 50164bc210 Sanitize code 2014-07-19 05:14:50 +09:00
Taro L. Saito f695e84cac #82: Improving SnappyOutputStream performance by reducing the numbe of data copies 2014-07-18 18:05:51 +09:00
Iheanyi Ekechukwu e487f823e5 Add lib/inc_ibm and remove libsnappyjava.so 2014-07-11 13:24:44 -05:00
Iheanyi Ekechukwu d61b43593f Add native libsnappyjava.a 2014-07-11 12:54:04 -05:00
Iheanyi Ekechukwu ce767baab3 Modify Makefile in order for snappy-java to correctly compile on AIX. 2014-07-09 16:33:22 -05:00
Iheanyi Ekechukwu 3a833a730b Fixes for compiling on AIX. 2014-07-07 15:25:23 -05:00
Taro L. Saito 527cd9b315 #54: Add linux-x86_64 native library with an embedded libstdc++ 2014-07-04 13:34:31 +09:00
Alex Bowen 3e674a0f3c updated bundle activitor to handle dynlib/jnilib issues on macos jdk7+ 2014-07-03 14:18:01 -04:00
Taro L. Saito da6263ff03 Merge pull request #75 from ibmsoe/aix-native
AIX Native
2014-07-03 09:39:15 +09:00
Iheanyi Ekechukwu f6ef8b3aa8 Add native libsnappyjava.so for IBM AIX 6.1 2014-07-02 11:04:14 -05:00
Taro L. Saito 075be36859 Fix comments 2014-06-26 14:34:03 +09:00
Taro L. Saito 492be99787 Removed unnecessary code 2014-06-26 14:33:54 +09:00
Iheanyi Ekechukwu f7c11fb881 Add native library for ppc64 2014-06-23 11:02:20 -05:00
Iheanyi Ekechukwu ed0a4cd9d9 Add native library for ppc64 2014-06-20 14:05:29 -05:00
Iheanyi Ekechukwu 33d6635731 Compile and add native libsnappyjava.so for ppcle64 2014-06-06 14:27:46 -05:00
Taro L. Saito fea947e46a Merge pull request #65 from bokken/develop
Aggressively reclaim direct byte buffers
2014-03-12 23:34:48 +09:00
bokken 6f75b02cd9 Aggressively reclaim direct byte buffers
https://github.com/xerial/snappy-java/issues/64
2014-02-27 16:28:09 -06:00
Taro L. Saito 50619d3f9d Merge pull request #63 from bokken/develop
Read until all bytes needed are read or EOF
2014-02-08 12:17:22 +09:00
bokken 146d6e989f Read until all bytes needed are read or EOF
https://github.com/xerial/snappy-java/issues/62
2014-02-07 09:49:46 -06:00
Taro L. Saito c72756f24e Merge pull request #59 from bokken/develop
change @since annotations to 1.1.1
2013-11-14 17:17:00 -08:00
bokken fb8cf734c9 change @since annotations to 1.1.1 2013-11-14 17:08:57 -06:00
Taro L. Saito d6457b2912 Merge pull request #58 from bokken/develop
Add transferFrom/transferTo methods to provide transfer optimizations
2013-11-11 17:25:07 -08:00
bokken bb10b5064e Add transferFrom/transferTo methods to provide transfer optimizations
https://github.com/xerial/snappy-java/issues/57
2013-11-11 10:25:58 -06:00
Taro L. Saito e35d2fea1d merged 2013-11-08 00:09:08 +09:00
Aymeric Barantal 02c1676904 SunOS native library for x86_64 architecture 2013-11-07 15:21:35 +01:00
Taro L. Saito 3700f97c67 Revert settings for sparc 2013-11-06 23:11:06 +09:00
Taro L. Saito d45b688b7e Fixes #55: Add mapping for sparc and rename native lib folder for SunOS:x86_64 2013-11-06 20:52:43 +09:00
Taro L. Saito 5f6c5f4c15 Fixes #52. typo in PPC. 2013-10-21 12:04:36 +09:00
Adam Pocock 92477bc39b Updated Solaris binaries for 1.1.1. 2013-10-18 22:13:36 -04:00
Taro L. Saito 0b110d55da Merge pull request #50 from bokken/develop
Optimize SnappyFramedOutputStream for NIO.
2013-10-17 18:09:10 -07:00
Taro L. Saito d26dce4415 #48: Use standard chmod methods (setReadable, setWritable, etc.) instaead of calling chmod command 2013-10-18 10:07:40 +09:00
bokken 682a839317 Optimize SnappyFramedOutputStream for NIO.
https://github.com/xerial/snappy-java/issues/49
2013-10-17 10:11:35 -05:00
Taro L. Saito bbb30d35b8 Add linux library that does not embed libstdc++ 2013-10-17 15:57:20 +09:00
Taro L. Saito 29ea8874c4 Build win, arm linux-x86 libraries 2013-10-16 23:54:07 -07:00
Taro L. Saito 2cbd257c7d Mac x86 library 2013-10-17 15:42:15 +09:00
Taro L. Saito b38fae214a Mac native library for 1.1.1 2013-10-17 15:40:34 +09:00
Taro L. Saito 4fbed2f14b #22 Drop the OpenBSD support from 1.1.0 since we do not have building environment 2013-10-17 10:41:19 +09:00
Taro L. Saito ee94db9840 Fixes #46. Set deleteOnExit() after creating the library file 2013-10-17 10:32:00 +09:00
Taro L. Saito b1e1c00733 Fixes #54. Make Snappy.cleanUp() function public. 2013-10-17 10:21:25 +09:00
Taro L. Saito c9d782adda Fixes for #45. osgi.arch -> processor 2013-10-15 22:49:10 +09:00
Adam Pocock d03796f700 Solaris x86 and Sparc binaries. 2013-08-13 13:36:59 -04:00
Taro L. Saito 8fd45946da Embed libstdc++ 2013-08-13 21:26:43 +09:00
Taro L. Saito 850ec42760 Linux x86 binary build using CentOS 2013-02-20 02:43:21 +09:00
Taro L. Saito 328505512d linux x86_64 binary built using CentOS 5 2013-02-20 02:42:56 +09:00
Taro L. Saito e3f0fcbaff Built native libs for Linux and Windows 2013-08-13 01:49:51 -07:00
Taro L. Saito 9a7657ef46 Fix for Mac-x86 2013-08-13 17:45:03 +09:00
Taro L. Saito 9671c81224 Removed the note on JNI injection 2013-08-13 17:07:02 +09:00
Taro L. Saito ae0a3e4d49 Add isValidCompressedBuffer for raw memory addresses 2013-08-13 17:02:16 +09:00
Taro L. Saito fed7278fcd Fix #29. Need to recreate native libraries for all OSes 2013-08-13 17:00:54 +09:00
Taro L. Saito 171775e92b Add a file permission setting code sample for Java6 2013-08-13 16:50:58 +09:00
Taro L. Saito dc20eaf222 Merge fixes for #27 2013-08-13 16:14:55 +09:00
Taro L. Saito b7755bf93d Add a cleanup phase for OSGi container 2013-08-13 16:09:29 +09:00
Taro L. Saito a48529731d Add Snappy.cleanUp method for J2EE containers. #27 2013-08-13 16:07:46 +09:00
Taro L. Saito 2891c692c0 Removed SnappyNativeAPI, since native loader injection is no longer necessary 2013-08-13 15:55:58 +09:00
Taro L. Saito 1c3c565352 Removed md5sum code, which will no longer be used 2013-08-13 15:47:05 +09:00
Taro L. Saito 06f007a084 Attach UUID to the extracted native library file 2013-08-13 15:46:05 +09:00
Philip K. Warren 5e3ba55782 Avoid leaks with GetPrimitiveArrayCritical.
It is possible that one of the two calls to GetPrimitiveArrayCritical
succeeded, in which case an exception would be thrown and the memory
would not be released. Ensure that every successful call to
GetPrimitiveArrayCritical is followed by a call to
ReleasePrimitiveArrayCritical.
2013-07-10 13:17:07 -05:00
Taro L. Saito d7263cc36d Fixes #39. Comparing two native libraries directly without generating md5sum 2013-07-02 10:27:10 +09:00
Taro L. Saito 88275fb846 commenting 2013-07-02 10:10:25 +09:00
Taro L. Saito 8c69129359 Fixes #34. Use canonical os.arch names for native lib folders 2013-06-06 11:35:42 +09:00
Dave Brosius c48ab66e99 make sure magic bytes are read fully 2013-05-10 23:16:25 -04:00
Taro L. Saito a5507afb6e Fixes #33. Add Mac/i386 binary 2013-04-23 13:13:11 +09:00
bokken 32194a2094 add support for x-snappy-framed streams
https://github.com/xerial/snappy-java/issues/30
2013-04-15 11:15:02 -05:00
Taro L. Saito 04ccfaf7b6 Fixes #22. Add OpenBSD native libraries 2013-04-10 10:36:23 +09:00
Taro L. Saito 34ba11cc9a Fix Makefile dependencies when generating SnappyNative.h 2013-04-10 10:33:28 +09:00
Taro L. Saito 8ff03ba782 Fix native library version 2013-03-29 10:37:33 +09:00
Taro L. Saito 2b502077b6 Add note on building linux amd64 binary using custom g++ 2013-03-28 17:27:13 +09:00
Taro L. Saito 0ee1e52ac1 Embed libstdc++ into Linux amd64 binary by using my own g++ 2013-03-28 17:08:01 +09:00
Taro L. Saito 0b48e2db4a version 1.1.0-M2. Fixes linux amd64 build 2013-03-28 15:02:20 +09:00
Taro L. Saito 1f0d7bd6cd #26. Add throws IOException to compress methods 2013-03-28 13:02:27 +09:00
Taro L. Saito 64c35c7081 Fixes #26. Add throws IOException to rawCompress 2013-03-28 12:53:23 +09:00
Taro L. Saito a5dcbb7dab Dropped the 32-bit mac support, since it does not have Java 6 or higher as default jvm 2013-03-27 17:25:08 +09:00
Taro L. Saito 5d13ed34f6 build mac32 binary 2013-03-27 16:07:54 +09:00
Taro L. Saito 1685568eb8 Remove OpenBSD libraries because I don't have OpenBSD machine to build snappy-1.1.0 2013-03-27 16:04:52 +09:00
Taro L. Saito 882ebf3532 Build linux amd64 native lib. Disabled -static-libstdc++ 2013-03-27 15:56:42 +09:00
Taro L. Saito c284cc600f build native libraries 2013-03-26 23:48:27 -07:00
Taro L. Saito dca3f64d28 Use snappy-1.1.0 which can be compiled in Mac OS X 10.8 2013-03-22 15:58:08 +09:00
Taro L. Saito f0e0e9727e #25 Add raw compress methods that take memory addresses 2013-03-22 15:53:56 +09:00
Taro L. Saito 69901033f6 Added OpenBSD native libs. Fixes #22 2013-03-19 23:26:18 +09:00
Juan Narvaez 274f11f73d Changing static variables to volatile. 2013-03-19 09:12:56 -05:00
Juan Narvaez 6bbdaa97d6 Patch for OSGi compatibility. 2013-03-19 08:45:16 -05:00
Taro L. Saito ed37dfac4b Fixes for issue #6 2012-09-28 11:34:02 +09:00
Taro L. Saito 5a60c131d0 Fixes issue #6 2012-09-27 11:09:32 +09:00
Taro L. Saito b697c61df8 Merge pull request #15 from bpow/develop
Throw ExceptionInInitializerError rather than just printing stacktrace
2012-09-06 19:24:48 -07:00
Taro L. Saito a1c36bb46e Fix on issue #6 2012-09-07 11:23:48 +09:00
Bradford Powell c2260cf38d Throw ExceptionInInitializerError rather than just printing stacktrace
to stderr if the native libraries cannot be loaded. Because Errors are
not checked exceptions, added to the javadoc to point out that static
initialization of Snappy can throw this Error.
2012-09-06 21:01:56 -05:00
Trevor Robinson 6ee72edc39 Added armhf shared library 2012-09-06 18:15:07 -05:00
Taro L. Saito 6507dcd7b0 Rebuild linux binaries 2012-09-06 12:32:29 +09:00
Taro L. Saito 568c8d6beb Build linux libraries using the modified jni_md.h 2012-06-30 05:53:16 -07:00
Taro L. Saito 79ac792fac rebuild linux binary using the previous machine 2012-06-29 14:59:31 +09:00
Taro L. Saito 11fe7fc6c8 Stop using -libstdc++, that causes link error in Ubuntu 2012-06-28 22:55:47 -07:00
Taro L. Saito a13b7a3254 Add libraries cross-compiled in Ubuntu 2012-06-28 22:26:31 -07:00
Taro L. Saito bd9cfb0d13 Applied a patch for ARM support, contributed by Trevor Robinson 2012-06-29 12:58:21 +09:00
Taro L. Saito f7f4397826 Upgrade to snappy-1.0.5. Support building in Max OS X Lion 2012-05-25 10:23:26 +09:00
Taro L. Saito 04140959b0 Fixes issue 37
Using a correcto class descriptor. This change will be available in next release.
2012-01-19 12:53:47 +09:00
Taro L. Saito 72383d990c Fixes issue 34 Implement available() method 2011-10-25 10:39:27 +09:00
Taro L. Saito 6189b561fa Fixes issue 33
Applied the patch fixing a bug when reading incomplete stream.
2011-10-05 10:25:51 +09:00
Taro L. Saito 35f7e8edd6 Change the native library version retrieval method to look up
a resource file (VERSION) in org.xerial.snappy package.

Update issue 32
Status: Fixed
2011-09-26 23:14:27 +09:00
Taro L. Saito 8a074fba6e Fixes issue 29 Javadoc 2011-09-22 16:39:51 +09:00
Taro L. Saito 3acecfb5af Fixes issue 27. Add package-info.java and javadoc stylesheet 2011-09-22 16:14:53 +09:00
Taro L. Saito d21db44a70 Fixes issue 27. 2011-09-22 16:14:31 +09:00
Taro L. Saito f990526b52 Fixes issue 30. Add "make javadoc" target 2011-09-22 15:47:29 +09:00
Taro L. Saito ebf661dc74 Fix javadoc 2011-09-22 15:37:18 +09:00
Taro L. Saito 267296fa93 mac32 library 2011-09-22 14:39:35 +09:00
Taro L. Saito 8767ca51e1 build linux/mac native libraries 2011-09-22 14:38:10 +09:00
Taro L. Saito e8356fd4f9 Upgrae to snappy-1.0.4 2011-09-22 14:34:41 +09:00
Taro L. Saito f2fe1d3d8b Update issue 28
A workaround to postpone the initialization of SnappyNativeAPI.
2011-09-09 11:16:28 +09:00
Taro L. Saito 2906673651 Fix javadoc comments 2011-08-23 18:13:19 +09:00
Taro L. Saito 29753d90fd Update issue 26
Applied the patch from tucu; load org-xerial-snappy.properties file when it can be found from the context class loader.
2011-08-23 11:01:34 +09:00
Taro L. Saito 57190cd4ab Fixes comments 2011-08-23 10:42:12 +09:00
Taro L. Saito fe85390989 Fix commend on loading libsnappyjava 2011-08-16 13:14:48 +09:00
Taro L. Saito 3710c4e7dc Updates issue 20. Add org.xerial.snappy.use.systemlib property to lookup snappyjava dll under java.library.path 2011-08-16 13:04:57 +09:00
Taro L. Saito 1354d90401 merged 2011-08-16 11:16:44 +09:00
Taro L. Saito 6540318a12 Fixes issue 20
org.xerial.snappy.enable.bundled.libs is used with the default value = true.
2011-08-16 11:16:21 +09:00
Taro L. Saito 0d9356eac1 Add comments. Reset the java code target to 1.5 2011-08-03 20:54:01 +09:00
Taro L. Saito c73d2e104b Fixes issue 24 2011-08-02 17:07:24 +09:00
Taro L. Saito 93f66fc2e5 comment 2011-08-02 15:31:57 +09:00
Taro L. Saito de803e67a4 Rebuild win32 library. Add comments to INSTALL/README 2011-08-02 15:27:43 +09:00
Taro L. Saito e01077db8a Add comment 2011-08-02 15:15:15 +09:00
Taro L. Saito aa04d562f8 Discard the local JNI code loader and the org.xerial.snappy.disable.inject option 2011-08-02 15:07:59 +09:00
Taro L. Saito f0ef649651 trace from context class loader 2011-08-02 14:27:52 +09:00
Taro L. Saito 1aba243237 removed overlapped part. Use ProtectionDomain when injecting classes 2011-08-02 14:01:57 +09:00
Taro L. Saito 075b94af00 Removed debug message 2011-08-02 13:18:29 +09:00
Taro L. Saito 2f6dc58ba8 add debug message 2011-08-02 11:46:08 +09:00
Taro L. Saito fd1fa411d9 temporary disable native code injection 2011-08-01 18:37:04 +09:00