rocksdb/java/rocksjni
Adam Retter c6d464a9da Fixed various memory leaks and Java 8 JNI Compatibility
Summary:
I have manually audited the entire RocksJava code base.

Sorry for the large pull-request, I have broken it down into many small atomic commits though.

My initial intention was to fix the warnings that appear when running RocksJava on Java 8 with `-Xcheck:jni`, for example when running `make jtest` you would see many errors similar to:

```
WARNING in native method: JNI call made without checking exceptions when required to from CallObjectMethod
WARNING in native method: JNI call made without checking exceptions when required to from CallVoidMethod
WARNING in native method: JNI call made without checking exceptions when required to from CallStaticVoidMethod
...
```

A few of those warnings still remain, however they seem to come directly from the JVM and are not directly related to RocksJava; I am in contact with the OpenJDK hostpot-dev mailing list about these - http://mail.openjdk.java.net/pipermail/hotspot-dev/2017-February/025981.html.

As a result of fixing these, I realised we were not r
Closes https://github.com/facebook/rocksdb/pull/1890

Differential Revision: D4591758

Pulled By: siying

fbshipit-source-id: 7f7fdf4
2017-02-27 16:39:12 -08:00
..
backupablejni.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
backupenginejni.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
checkpoint.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
columnfamilyhandle.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
compaction_filter.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
comparator.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
comparatorjnicallback.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
comparatorjnicallback.h Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
env.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
env_options.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
external_sst_file_info.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
filter.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
iterator.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
loggerjnicallback.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
loggerjnicallback.h Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
memtablejni.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
merge_operator.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
options.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
portal.h Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
ratelimiterjni.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
remove_emptyvalue_compactionfilterjni.cc Improve the speed and synchronization around the construction of Java/JNI objects 2016-02-10 14:44:39 +00:00
restorejni.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
rocksdb_exception_test.cc Add Status to RocksDBException so that meaningful function result Status from the C++ API isn't lost (#1273) 2016-08-22 11:01:42 -07:00
rocksjni.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
slice.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
snapshot.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
sst_file_writerjni.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
statistics.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
table.cc Adding pin_l0_filter_and_index_blocks_in_cache feature and related fixes. 2016-04-01 10:42:39 -07:00
transaction_log.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
ttl.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
write_batch.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
write_batch_test.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
write_batch_with_index.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
writebatchhandlerjnicallback.cc Fixed various memory leaks and Java 8 JNI Compatibility 2017-02-27 16:39:12 -08:00
writebatchhandlerjnicallback.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00