RFR 8184744 : Replace finalizer in crypto classes with Cleaner

Roger Riggs Roger.Riggs at Oracle.com
Thu Aug 3 20:01:55 UTC 2017


Found a race in the tests between the Cleaner clearing the arrays and 
the test waiting for the key to be freed.
Revised to continuously check the arrays and exit when they are 
cleared.  If not cleared the test will timeout.

Updated the webrev:
   http://cr.openjdk.java.net/~rriggs/webrev-crypt-finalize-8184744/

Thanks, Roger

On 8/3/2017 9:58 AM, Roger Riggs wrote:
> Please review replacing finalize with java.lang.ref.Cleaner in a few 
> simple cases.
>
> Webrev:
> http://cr.openjdk.java.net/~rriggs/webrev-crypt-finalize-8184744/
>
> Thanks, Roger
>
>




More information about the security-dev mailing list