RFR: 8278065: Refactor subclassAudits to use ClassValue [v4]

Roger Riggs rriggs at openjdk.java.net
Wed Jan 12 14:30:27 UTC 2022


On Wed, 12 Jan 2022 11:15:56 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
>
> Roman Kennke has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Merge remote-tracking branch 'origin/JDK-8278065' into JDK-8278065
>  - Avoid assert on unboxing Boolean

I would have appreciated a chance to review the latest changes.

-------------

PR: https://git.openjdk.java.net/jdk/pull/6637


More information about the core-libs-dev mailing list