8250669: Running JMH micros is broken after JDK-8248135
Reviewed-by: ecaspole, erikj
This commit is contained in:
parent
edd19888df
commit
a7595b2a61
@ -90,11 +90,10 @@ $(eval $(call SetupJavaCompilation, BUILD_JDK_MICROBENCHMARK, \
|
||||
TARGET_RELEASE := $(TARGET_RELEASE_NEWJDK_UPGRADED), \
|
||||
SMALL_JAVA := false, \
|
||||
CLASSPATH := $(MICROBENCHMARK_CLASSPATH), \
|
||||
DISABLED_WARNINGS := processing rawtypes cast serial preview, \
|
||||
DISABLED_WARNINGS := processing rawtypes cast serial, \
|
||||
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)
|
||||
|
@ -82,7 +82,7 @@ import java.util.stream.IntStream;
|
||||
@Measurement(iterations = 10, time = 1)
|
||||
@OutputTimeUnit(TimeUnit.MICROSECONDS)
|
||||
@State(Scope.Thread)
|
||||
@Fork(value = 1, warmups = 0, jvmArgsAppend = "--enable-preview")
|
||||
@Fork(value = 1, warmups = 0)
|
||||
public class RecordDeserialization {
|
||||
|
||||
public record PointR(int x, int y) implements Serializable {}
|
||||
|
Loading…
Reference in New Issue
Block a user