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

Build microbenchmarks with --enable-preview

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 15
    • Component/s: infrastructure
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b29

      Backports

        Description

        When building microbenchmarks, we should enable preview features as a convenience.

        diff -r f2e1cd498381 make/test/BuildMicrobenchmark.gmk
        --- a/make/test/BuildMicrobenchmark.gmk Tue Jun 23 10:08:35 2020 +0200
        +++ b/make/test/BuildMicrobenchmark.gmk Tue Jun 23 10:33:17 2020 +0200
        @@ -90,10 +90,11 @@
             TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \
             SMALL_JAVA := false, \
             CLASSPATH := $(MICROBENCHMARK_CLASSPATH), \
        - DISABLED_WARNINGS := processing rawtypes cast serial, \
        + DISABLED_WARNINGS := processing rawtypes cast serial preview, \
             SRC := $(MICROBENCHMARK_SRC), \
             BIN := $(MICROBENCHMARK_CLASSES), \
             JAVA_FLAGS := --add-modules jdk.unsupported --limit-modules java.management, \
        + JAVAC_FLAGS := --enable-preview, \
         ))

         $(BUILD_JDK_MICROBENCHMARK): $(JMH_COMPILE_JARS)

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                plevart Peter Levart
                Reporter:
                redestad Claes Redestad
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: