8250669: Running JMH micros is broken after JDK-8248135

Reviewed-by: ecaspole, erikj
This commit is contained in:
Claes Redestad 2020-10-28 22:36:43 +00:00
parent edd19888df
commit a7595b2a61
2 changed files with 2 additions and 3 deletions

View File

@ -90,11 +90,10 @@ $(eval $(call SetupJavaCompilation, BUILD_JDK_MICROBENCHMARK, \
TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \ TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \
SMALL_JAVA := false, \ SMALL_JAVA := false, \
CLASSPATH := $(MICROBENCHMARK_CLASSPATH), \ CLASSPATH := $(MICROBENCHMARK_CLASSPATH), \
DISABLED_WARNINGS := processing rawtypes cast serial preview, \ DISABLED_WARNINGS := processing rawtypes cast serial, \
SRC := $(MICROBENCHMARK_SRC), \ SRC := $(MICROBENCHMARK_SRC), \
BIN := $(MICROBENCHMARK_CLASSES), \ BIN := $(MICROBENCHMARK_CLASSES), \
JAVA_FLAGS := --add-modules jdk.unsupported --limit-modules java.management, \ JAVA_FLAGS := --add-modules jdk.unsupported --limit-modules java.management, \
JAVAC_FLAGS := --enable-preview, \
)) ))
$(BUILD_JDK_MICROBENCHMARK): $(JMH_COMPILE_JARS) $(BUILD_JDK_MICROBENCHMARK): $(JMH_COMPILE_JARS)

View File

@ -82,7 +82,7 @@ import java.util.stream.IntStream;
@Measurement(iterations = 10, time = 1) @Measurement(iterations = 10, time = 1)
@OutputTimeUnit(TimeUnit.MICROSECONDS) @OutputTimeUnit(TimeUnit.MICROSECONDS)
@State(Scope.Thread) @State(Scope.Thread)
@Fork(value = 1, warmups = 0, jvmArgsAppend = "--enable-preview") @Fork(value = 1, warmups = 0)
public class RecordDeserialization { public class RecordDeserialization {
public record PointR(int x, int y) implements Serializable {} public record PointR(int x, int y) implements Serializable {}