netty5/transport-native-kqueue
Norman Maurer 15eef2425a Cleanup JNI code to always correctly free memory when loading fails and also correctly respect out of memory in all cases (#9596)
Motivation:

At the moment we not consistently (and also not correctly) free allocated native memory in all cases during loading the JNI library. This can lead to native memory leaks in the unlikely case of failure while trying to load the library.

Beside this we also not always correctly handle the case when a new java object can not be created in native code because of out of memory.

Modification:

- Copy some macros from netty-tcnative to be able to handle errors in a more easy fashion
- Correctly account for New* functions to return NULL
- Share code

Result:

More robust and clean JNI code
2019-09-24 07:23:50 +02:00
..
src Cleanup JNI code to always correctly free memory when loading fails and also correctly respect out of memory in all cases (#9596) 2019-09-24 07:23:50 +02:00
pom.xml Include c source files in source jar (#9497) 2019-08-23 09:33:31 +02:00