We don't need jdk.internal.ref.Cleaner any more

Chris Hegarty chris.hegarty at oracle.com
Tue Feb 16 14:02:03 UTC 2016


On 15 Feb 2016, at 20:05, Mandy Chung <mandy.chung at oracle.com> wrote:

> 
>> On Feb 15, 2016, at 9:06 AM, Uwe Schindler <uschindler at apache.org> wrote:
>> 
>> Hi,
>> 
>>> On 15/02/2016 14:57, Chris Hegarty wrote:
>>>> Peter,
>>>> 
>>>> http://cr.openjdk.java.net/~plevart/jdk9-dev/removeInternalCleaner/webrev.02/
>>>> 
> 
> This patch looks correct to me.  The innocuous thread created for common cleaner is of Thread.MAX_PRIORITY - 2 priority whereas the reference handler thread is of MAX_PRIORITY priority.

I see your point, but I don’t see this as an issue because threads failing to
allocate memory themselves get involved in cleaning. So pressure is
somewhat off the reference handler thread.

-Chris.


More information about the core-libs-dev mailing list