forked from jruby/jruby
-
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.
replace Cleaner API with a local Thread
Cleaner is Java 9+, so it cannot be used on JRuby 9 because that is meant to run on Java 8 and up. The disadvantage wrt the Cleaner API is that this will leak a Thread if `terminate()` is never called. At least it's a Daemon Thread so it doesn't keep the JVM from exiting.
- Loading branch information
1 parent
3b0c8d1
commit 71260b8
Showing
1 changed file
with
48 additions
and
6 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