[
https://issues.apache.org/jira/browse/LUCENE-5716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14111258#comment-14111258
]
Dawid Weiss commented on LUCENE-5716:
-------------------------------------
Yeah, this patch is a proof of concept more than a fully fledged solution. It
only covers wrapping FileInputStream, doesn't include output streams, NIO or
sockets. It also introduces aspectj dependency which may be an annoyance to
many people -- I personally like it, but I can understand why others may hate
such a piece of bytecode voodoo...
Also note my comment above:
> Option (3) is feasible, I just checked (same project as above, jvmti branch).
This is, I think, a much more reliable way to hack into the JVM since it'd
allow you to wrap, track (and reload) the core system classes, not just
pointcuts (bytecode calls) where these classes are used. It is a more difficult
way, but it's also more rewarding in the end (or so I tend to believe). Sadly,
I won't be able to work on it in any near future -- too much stuff on my plate
right now. If you want to take over, go ahead!
> Track file handle leaks (FileDescriptor, NIO Path SPI and Socket mostly).
> -------------------------------------------------------------------------
>
> Key: LUCENE-5716
> URL: https://issues.apache.org/jira/browse/LUCENE-5716
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Dawid Weiss
> Assignee: Dawid Weiss
> Priority: Minor
>
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]