RFR(S) 8240244 Avoid calling resolve_super_or_fail in SystemDictionary::load_shared_class

Claes Redestad claes.redestad at oracle.com
Tue Mar 3 15:19:46 UTC 2020


On 2020-03-03 12:15, Claes Redestad wrote:
> It seems to me that it might be possible to take the
> SystemDictionary_lock just once in check_shared_class_super_types
> method, spanning super and all interfaces. That might need some
> restructuring since we can't hold that lock when going into
> the class-loading slow path, but I think the slow path could profitably
> be moved to the outer method outside such a locked section.

I took a quick stab at prototyping this idea[1], and it does not appear
to be an improvement over the proposed version.

/Claes

[1] http://cr.openjdk.java.net/~redestad/scratch/8240244_lock.00/


More information about the hotspot-runtime-dev mailing list