Managing JNI resources in a classloader that might go away

2017-02-24 Thread Charles Oliver Nutter
Hey smart folks, I have a conundrum and Google is failing me. As you may know, we have been maintaining the Java Native Runtime libraries for providing FFI from Java pre-Panama. These libraries handle loading and binding C functions to Java endpoints automagically. Unfortunately, jffi -- the base

Classloading glitch in publicLookup.findConstructor?

2017-02-24 Thread Charles Oliver Nutter
We've had a number of reports of LinkageError-related problems with a constructor handle acquired through publicLookup. Here's the commit that fixed the problem, with a link to a PR explaining the error: https://github.com/jruby/jruby/commit/32926ac194c03f0e61c0121e9da0b0427cfa5869 It seems like