From 4dd4077f647238d53bcbada2450b2b040e7aeb97 Mon Sep 17 00:00:00 2001 From: Robbin Ehn Date: Tue, 3 Dec 2024 08:09:15 +0100 Subject: [PATCH] Review comment --- .../gtest/riscv/test_assembler_riscv.cpp | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/hotspot/gtest/riscv/test_assembler_riscv.cpp b/test/hotspot/gtest/riscv/test_assembler_riscv.cpp index 2b958041b1cac..7344d3827b9bd 100644 --- a/test/hotspot/gtest/riscv/test_assembler_riscv.cpp +++ b/test/hotspot/gtest/riscv/test_assembler_riscv.cpp @@ -305,7 +305,7 @@ class WeakCmpxchgTester { }; template -void run_narrow_cmpxchg_tests() { +void run_weak_cmpxchg_narrow_value_tests() { // Assume natural aligned TESTSIZE data[8]; TESTSIZE ret; @@ -327,31 +327,31 @@ void run_narrow_cmpxchg_tests() { TEST_VM(RiscV, cmpxchg_weak_int16_lr_sc) { bool zacas = UseZacas; UseZacas = false; - run_narrow_cmpxchg_tests(); + run_weak_cmpxchg_narrow_value_tests(); UseZacas = zacas; } TEST_VM(RiscV, cmpxchg_weak_int8_lr_sc) { bool zacas = UseZacas; UseZacas = false; - run_narrow_cmpxchg_tests(); + run_weak_cmpxchg_narrow_value_tests(); UseZacas = zacas; } TEST_VM(RiscV, cmpxchg_weak_int16_maybe_zacas) { if (UseZacas) { - run_narrow_cmpxchg_tests(); + run_weak_cmpxchg_narrow_value_tests(); } } TEST_VM(RiscV, cmpxchg_weak_int8_maybe_zacas) { if (UseZacas) { - run_narrow_cmpxchg_tests(); + run_weak_cmpxchg_narrow_value_tests(); } } template -void weak_cmpxchg_test() { +void run_weak_cmpxchg_tests() { TESTSIZE data = 121; TESTSIZE ret = WeakCmpxchgTester::weak_cmpxchg((intptr_t)&data, 121, 42); ASSERT_EQ(ret, 1); @@ -366,26 +366,26 @@ void weak_cmpxchg_test() { TEST_VM(RiscV, cmpxchg_weak_int64_lr_sc) { bool zacas = UseZacas; UseZacas = false; - weak_cmpxchg_test(); + run_weak_cmpxchg_tests(); UseZacas = zacas; } TEST_VM(RiscV, cmpxchg_weak_int64_maybe_zacas) { if (UseZacas) { - weak_cmpxchg_test(); + run_weak_cmpxchg_tests(); } } TEST_VM(RiscV, cmpxchg_weak_int32_lr_sc) { bool zacas = UseZacas; UseZacas = false; - weak_cmpxchg_test(); + run_weak_cmpxchg_tests(); UseZacas = zacas; } TEST_VM(RiscV, cmpxchg_weak_int32_maybe_zacas) { if (UseZacas) { - weak_cmpxchg_test(); + run_weak_cmpxchg_tests(); } }