Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8216157

Enable inlining of java_lang_Class::is_primitive

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 13
    • None
    • hotspot
    • b03

      Moving Class::is_primitive to javaClasses.inline.hpp is a small micro-optimization on a microbenchmark that exercise java.lang.reflect.Array.newInstance with C1 or C2 with intrinsics disabled.

      The method is also so trivial - sans the assert - that inlining the call at the 50-60 callsites in Hotspot actually shrinks the size of the VM by a tiny amount.

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: