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