[PATCH] 8246633: Improve the performance of ObjectInputStream.resolveClass(ObjectStreamClass)

Alan Bateman Alan.Bateman at oracle.com
Sat Jun 13 16:06:06 UTC 2020


On 13/06/2020 00:19, Peter Kessler (Open Source) wrote:
> :
>
> I settled on a system-wide one-bit cache: There have been no
> user-defined ClassLoaders constructed, so I can not find one on any
> particular stack walk.  It may not be the best possible solution, but
> it addresses the issue of useless stack walks in the common case where
> there are no user-defined ClassLoaders.
>
Does this help anything other than SPECjbb2015? Real world code will use 
core reflection and other areas of the JDK that create class loaders at 
run-time so I assume this optimization will be disabled very quickly. I 
think it would be better to look for other solutions.

-Alan


More information about the core-libs-dev mailing list