RFR 9: 8138696 : java.lang.ref.Cleaner - an easy to use alternative to finalization

Chris Hegarty chris.hegarty at oracle.com
Tue Oct 13 19:06:43 UTC 2015

On 1 Oct 2015, at 15:12, Roger Riggs <Roger.Riggs at oracle.com> wrote:

> ….
> Javadoc:
>  http://cr.openjdk.java.net/~rriggs/cleaner-doc/
> Webrev:
>   http://cr.openjdk.java.net/~rriggs/webrev-cleaner-8138696/

This is nice addition. Some comments / questions:

1) Should the behaviour, TCCL, permissions, etc, for
    the default thread factory be specified in an apiNote?

2) threadFactory.newThread() is only ever called once?
    Is this worth a note? Or potentially limiting to some
    other implementation.

3) So the thunk runs with the intersection of the
    permissions that are associated with the thunk and the
    thread’s protection domain, regardless of the caller, right?


More information about the core-libs-dev mailing list