tweag/inline-java

Optimize disposal of IOVectors

facundominguez opened this issue · 0 comments

As of #150, the finalizer of IOVectors resulting from marshaling Java vectors to Haskell will attach the finalizer thread to the JVM.

We could avoid that by extending the interface of the background thread we use to delete global references.

fptr <- newForeignPtr ptr $ runInAttachedThread $