[External] : Re: JEP 411, removal of finalizers, a path forward.

Ron Pressler ron.pressler at oracle.com
Tue Aug 3 12:15:07 UTC 2021

> On 3 Aug 2021, at 12:50, Peter Firmstone <peter.firmstone at zeus.net.au> wrote:
> Can you think of any workable alternative compromises?

If you mean a compromise between no access checks in the JDK and all access checks in the JDK, then yes,
which is possibly some callbacks for a small subset of operations that perform access checks today, 
say, System.exit and opening a file or socket. I am not saying this is what should be done, but that the 
effort involved is such that I can conceivably see those whose responsibility this would be agreeing to
consider it, as the value in such a mechanism might end up being worthy of that amount of effort. But I’m
guessing that the more such hooks are requested, the less likely it is that the cost remains acceptable.

— Ron

More information about the jdk-dev mailing list