Enable inlining of java_lang_Class::is_primitive

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 13
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: