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

[JVMCI] add ResolvedJavaMethod.hasNeverInlineDirective

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b156

      Backports

        Description

        The ResolvedJavaMethod.canBeInlined method captures 2 different constraints on inlining:

        1. Whether the method has an explicit directive (e.g., -XX:CompileCommand=dontinline) or a hotspot recognized annotation (e.g., @DontInline).
        2. Whether hotspot has marked it not compilable for policy reasons (e.g., failed compilation earlier or has a bytecode breakpoint).

        Some JVMCI clients (such as Truffle partial evaluation) are explicitly interested in the former without concern for the latter. To support this oversight, a separate ResolvedJavaMethod.hasNeverInlineDirective method must be added to JMVCI.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dnsimon Douglas Simon
                  Reporter:
                  never Tom Rodriguez
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: