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

[JVMCI] hasBytecode should reflect whether bytecode are actually available

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 13
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:

      Description

      The purpose of ResolvedJavaMethod.hasBytecodes() is to inform the caller whether the receiver has bytecodes available (via ResolvedJavaMethod.getCode()) that implement the semantics of the represented method. In HotSpot, this is equivalent to the method being non-native and non-abstract. However, in SVM, bytecodes can be provided/generated for methods based on annotations. As such, the implementation of hasBytecodes() should be implemented purely in terms of whether bytecodes are available, not in terms of properties that imply the existence of bytecodes for a specific VM context.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kvn Vladimir Kozlov
                Reporter:
                dnsimon Douglas Simon
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: