RFR: 8217325: Enable inlining of java_lang_Class::oop_size_raw
shade at redhat.com
Thu Jan 17 17:23:38 UTC 2019
On 1/17/19 6:12 PM, Claes Redestad wrote:
> InstanceMirrorKlass::oop_size could be helped slightly if
> java_lang_Class::oop_size_raw was made inlineable.
> This significantly speeds up one branch in oopDesc::size_given_klass
> (heavily used by G1, at least during startup/warmup) while not causing
> any increase in binary size (linux x64).
> Bug: https://bugs.openjdk.java.net/browse/JDK-8217325
> Webrev: http://cr.openjdk.java.net/~redestad/8217325/open.00/
I remember seeing the profiles for Shenandoah that walks the objects and uses oopDesc::size*
heavily, and it was inlined in product builds. That said, inlining it manually does not hurt.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: OpenPGP digital signature
More information about the hotspot-gc-dev