-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Hyphenator early GC of the native pointers
The crashes encountered when a garbage collection thread cleaned pointers declared in the hyphenation function. Those pointers were possibly still reserved by the JNA running thread while being cleaned up. The pointers lifetime has been moved to the object level with a ThreadLocal wrapper for thread safety.
- Loading branch information
Showing
1 changed file
with
34 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