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

Remove @ServiceProvider mechanism from JVMCI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • b105

      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.

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

              Created:
              Updated:
              Resolved: