Hi all,

Following the discussion on this a few weeks ago, here’s the first version
of the change:

http://cr.openjdk.java.net/~tonyp/8202788/webrev.0/

I think the consensus was that it’d be easier if the exit hooks were only
available within java.base. Is it enough that I added the functionality to
the jdk.internal.misc package? (And is jdk.internal.misc the best place for
this?)

I’ll also add a test for the new functionality. But let’s first come up
with an approach that everyone is happy with. :-)

One additional question: I put the new functionality conditional on a
property (jdk.nio.freeBuffersAtThreadExit) and it’s off by default. Should
I make it on by default? Or just not add the property all-together?

Tony


—————
Tony Printezis | @TonyPrintezis | tprinte...@twitter.com

Reply via email to