You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two linked issues: NativeDatabase ctor is not invoked when an instances is created by hs_compile_multi, so deallocator is not registered there.
In com.gliwka.hyperscan.wrapper.Database#load(java.io.InputStream, java.io.InputStream), the ctor is called, but the deallocator lambda contains a reference to ṫhis, which makes it non-reclaimable by GC. this.deallocator(() -> hs_free_database(this));
The text was updated successfully, but these errors were encountered:
mmimica
pushed a commit
to mmimica/hyperscan-java
that referenced
this issue
Oct 18, 2021
hello @mmimica , I have a question unrelated to your PR. I'm stuck on a problem and could not solve it. I guess you might have an idea, I have created an issue here gliwka/hyperscan-java-native#29. I would highly appreciate it if you can provide any suggestions on how the issue could be resolved. Thank you in advance and apologies for this unrelated comment.
Two linked issues:
NativeDatabase
ctor is not invoked when an instances is created byhs_compile_multi
, so deallocator is not registered there.In
com.gliwka.hyperscan.wrapper.Database#load(java.io.InputStream, java.io.InputStream)
, the ctor is called, but the deallocator lambda contains a reference toṫhis
, which makes it non-reclaimable by GC.this.deallocator(() -> hs_free_database(this));
The text was updated successfully, but these errors were encountered: