netty5/transport-native-unix-common
Norman Maurer 5e69a13c21
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:18:35 +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:18:35 +02:00
Makefile New native transport for kqueue 2017-05-03 09:53:22 -07:00
pom.xml [maven-release-plugin] prepare for next development iteration 2019-09-12 16:09:55 +00:00