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

Enable inlining of java_lang_Class::is_primitive

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: