From bd894e121d128c444628549c72021c7f81ac9a8e Mon Sep 17 00:00:00 2001 From: sendaoYan Date: Mon, 20 May 2024 20:30:23 +0800 Subject: [PATCH] 8332499: Gtest codestrings.validate_vm fail on linux x64 Signed-off-by: sendaoYan --- test/hotspot/gtest/code/test_codestrings.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/hotspot/gtest/code/test_codestrings.cpp b/test/hotspot/gtest/code/test_codestrings.cpp index bd25da7620853..7d5082045ce48 100644 --- a/test/hotspot/gtest/code/test_codestrings.cpp +++ b/test/hotspot/gtest/code/test_codestrings.cpp @@ -49,7 +49,8 @@ static const char* replace_addr_expr(const char* str) // Padding: riscv std::basic_string tmp4 = std::regex_replace(tmp3, std::regex("\\s+:\\s+unimp"), ""); // Padding: x64 - std::basic_string red = std::regex_replace(tmp4, std::regex("\\s+:\\s+hlt[ \\t]+(?!\\n\\s+;;)"), ""); + std::basic_string tmp5 = std::regex_replace(tmp4, std::regex("\\s+:\\s+nop[ \\t]+(?!\\n\\s+;;)"), ""); + std::basic_string red = std::regex_replace(tmp5, std::regex("\\s+:\\s+hlt[ \\t]+(?!\\n\\s+;;)"), ""); return os::strdup(red.c_str()); }