forked from netty/netty-jni-util
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Motivation: When statically compiled, the same netty-jni-util may be used by multiple separate JNI libraries. In this situation there is only one copy of static variables, so it is only safe to use static variables in cases where they can safely be reused. That's not the case for the current staticPackagePrefix. Modifications: Force the caller to manage the static state, which can be unique per usage. Result: Static compilation is available again for JNI libraries that supported static compilation before depending on netty-jni-util. Fixes netty#5.
- Loading branch information
Showing
2 changed files
with
6 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters