Integrated: 8284855: Update needed to Cleaners added to jdk.crypto.cryptoki
Xue-Lei Andrew Fan
xuelei at openjdk.java.net
Tue Apr 19 21:56:32 UTC 2022
On Thu, 14 Apr 2022 18:06:10 GMT, Xue-Lei Andrew Fan <xuelei at openjdk.org> wrote:
> This is an effort to fix a problem introduced in the fix for [JDK-8284368](https://bugs.openjdk.java.net/browse/JDK-8284368), which replaced the finalizers in jdk.crypto.cryptoki with Cleaners. However, there is a problem with the code changes. The Runnables registered with Cleaner refer to the object being registered ('this'). Meaning, the Cleaner mechanism will keep the objects reachable, preventing them from being cleaned and collected.
This pull request has now been integrated.
Changeset: 60446746
Author: Xue-Lei Andrew Fan <xuelei at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/60446746d41c3c80d9788a252b4a55afe44e1e7b
Stats: 82 lines in 7 files changed: 32 ins; 24 del; 26 mod
8284855: Update needed to Cleaners added to jdk.crypto.cryptoki
Reviewed-by: valeriep
-------------
PR: https://git.openjdk.java.net/jdk/pull/8248
More information about the security-dev
mailing list