RFR: 8278065: Refactor subclassAudits to use ClassValue
Roger Riggs
rriggs at openjdk.java.net
Thu Dec 2 19:52:18 UTC 2021
On Wed, 1 Dec 2021 14:45:23 GMT, Roman Kennke <rkennke at openjdk.org> wrote:
> As a follow-up to #6375, this change refactors java.io.ObjectInputStream.Caches#subclassAudits and java.io.ObjectOutputStream.Caches#subclassAudits to use ClassValue instead of SoftReference, similar to what we did in #6375 for java.io.ObjectStreamClass.Caches#localDescs. Then we can now also remove the common machinery java.io.ObjectStreamClass#processQueue and java.io.ObjectStreamClass.WeakClassKey.
>
> Testing:
> - [x] tier1
> - [x] tier2
> - [ ] tier3
Looks good.
-------------
Marked as reviewed by rriggs (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/6637
More information about the core-libs-dev
mailing list