RFR[XS] JDK-8178543 - Optimize Klass::is_shared()
calvin.cheung at oracle.com
Thu Apr 13 14:56:18 UTC 2017
The fix looks good to me.
On 4/13/17, 2:30 AM, Ioi Lam wrote:
> Hi, please review this small start-up enhancement:
> We have a benchmark that shows Klass::is_shared() is called very
> frequently during InstanceKlass::link_class_impl, and costs about 2%
> of the start-up time.
> The fix is simple -- instead of walking the list of CDS shared
> regions, use a new bit in Klass::_access_flags
> - Ioi
More information about the hotspot-dev