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

Remove @ServiceProvider mechanism from JVMCI

    Details

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

      Description

      JVMCI currently includes an annotation based mechanism to simplify the implementation of service providers. In particular, it removes the need to manually create the necessary provider-configuration files in META-INF/services.

      Having an annotation based mechanism in JVMCI means adding non-standard steps to the JDK9 build system for building the relevant annotation processor. This is overkill since JVMCI itself only has these 3 providers (AArch64HotSpotJVMCIBackendFactory, AMD64HotSpotJVMCIBackendFactory and SPARCHotSpotJVMCIBackendFactory) for a single service (HotSpotJVMCIBackendFactory). What's more, its yet more code that needs to be taken into account should JVMCI be back-ported.

      For the above reasons, this issue will remove ServiceProvider and ServiceProviderProcessor from JVMCI.

        Attachments

          Activity

            People

            • Assignee:
              dnsimon Douglas Simon
              Reporter:
              dnsimon Douglas Simon
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: