Update test/micro/org/openjdk/bench/java/lang/StringEquals.java

Co-authored-by: Andrey Turbanov <turbanoff@gmail.com>
This commit is contained in:
Ehsan Behrangi 2026-06-08 14:00:06 +01:00 committed by GitHub
parent 0f585e352a
commit f3cfd3f1ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,7 +63,7 @@ public class StringEquals {
@Setup
public void setup() {
if(size > 0) {
if (size > 0) {
test8 = "a".repeat(size);
// NOTE 1: can't do test9 = new String(test8) or they'll share byte
// arrays, which improves cache hit rate of the equal-string case