RFR: 8314085: Fixing scope from benchmark to thread for JMH tests having shared state

Swati Sharma duke at openjdk.org
Thu Aug 10 15:55:29 UTC 2023


In addition to the issue [JDK-8311178](https://bugs.openjdk.org/browse/JDK-8311178), logically fixing the scope from benchmark to thread for below benchmark files having shared state, also which fixes few of the benchmarks scalability problems.

org/openjdk/bench/java/io/DataInputStreamTest.java
org/openjdk/bench/java/lang/ArrayClone.java
org/openjdk/bench/java/lang/StringCompareToDifferentLength.java
org/openjdk/bench/java/lang/StringCompareToIgnoreCase.java
org/openjdk/bench/java/lang/StringComparisons.java
org/openjdk/bench/java/lang/StringEquals.java
org/openjdk/bench/java/lang/StringFormat.java
org/openjdk/bench/java/lang/StringReplace.java
org/openjdk/bench/java/lang/StringSubstring.java
org/openjdk/bench/java/lang/StringTemplateFMT.java
org/openjdk/bench/java/lang/constant/MethodTypeDescFactories.java
org/openjdk/bench/java/lang/constant/ReferenceClassDescResolve.java
org/openjdk/bench/java/lang/invoke/MethodHandlesConstant.java
org/openjdk/bench/java/lang/invoke/MethodHandlesIdentity.java
org/openjdk/bench/java/lang/invoke/MethodHandlesThrowException.java
org/openjdk/bench/java/lang/invoke/MethodTypeAppendParams.java
org/openjdk/bench/java/lang/invoke/MethodTypeChangeParam.java
org/openjdk/bench/java/lang/invoke/MethodTypeChangeReturn.java
org/openjdk/bench/java/lang/invoke/MethodTypeDropParams.java
org/openjdk/bench/java/lang/invoke/MethodTypeGenerify.java
org/openjdk/bench/java/lang/invoke/MethodTypeInsertParams.java
org/openjdk/bench/java/security/CipherSuiteBench.java
org/openjdk/bench/java/time/GetYearBench.java
org/openjdk/bench/java/time/InstantBench.java
org/openjdk/bench/java/time/format/DateTimeFormatterWithPaddingBench.java
org/openjdk/bench/java/util/ListArgs.java
org/openjdk/bench/java/util/LocaleDefaults.java
org/openjdk/bench/java/util/TestAdler32.java
org/openjdk/bench/java/util/TestCRC32.java
org/openjdk/bench/java/util/TestCRC32C.java
org/openjdk/bench/java/util/regex/Exponential.java
org/openjdk/bench/java/util/regex/Primality.java
org/openjdk/bench/java/util/regex/Trim.java
org/openjdk/bench/javax/crypto/AESReinit.java
org/openjdk/bench/jdk/incubator/vector/LoadMaskedIOOBEBenchmark.java
org/openjdk/bench/vm/compiler/Rotation.java
org/openjdk/bench/vm/compiler/x86/ConvertF2I.java
org/openjdk/bench/vm/compiler/x86/BasicRules.java

Please review and provide your feedback.

Thanks,
Swati

-------------

Commit messages:
 - 8314085: Fixing scope from benchmark to thread for JMH tests having shared state

Changes: https://git.openjdk.org/jdk/pull/15230/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15230&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8314085
  Stats: 46 lines in 38 files changed: 0 ins; 0 del; 46 mod
  Patch: https://git.openjdk.org/jdk/pull/15230.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15230/head:pull/15230

PR: https://git.openjdk.org/jdk/pull/15230


More information about the security-dev mailing list