[compiler-rt] [fuzzer][Fuchsia] Forward fix for undefined StartRssThread (PR #155514)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 26 16:01:53 PDT 2025
https://github.com/PiJoules created https://github.com/llvm/llvm-project/pull/155514
The declaration was static when it shouldn't be since it can be defined in FuzzerUtilFuchsia.cpp
>From ae193bb3e894beb3008671d0108940a3dcba0e57 Mon Sep 17 00:00:00 2001
From: Leonard Chan <leonardchan at google.com>
Date: Tue, 26 Aug 2025 22:59:56 +0000
Subject: [PATCH] [fuzzer][Fuchsia] Forward fix for undefined StartRssThread
The declaration was static when it shouldn't be.
---
compiler-rt/lib/fuzzer/FuzzerDriver.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/compiler-rt/lib/fuzzer/FuzzerDriver.cpp b/compiler-rt/lib/fuzzer/FuzzerDriver.cpp
index cd143f1089ef0..af9c260537e2f 100644
--- a/compiler-rt/lib/fuzzer/FuzzerDriver.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerDriver.cpp
@@ -306,7 +306,7 @@ static int RunInMultipleProcesses(const std::vector<std::string> &Args,
return HasErrors ? 1 : 0;
}
-static void StartRssThread(Fuzzer *F, size_t RssLimitMb);
+void StartRssThread(Fuzzer *F, size_t RssLimitMb);
// Fuchsia needs to do some book checking before starting the RssThread,
// so it has its own implementation.
@@ -320,7 +320,7 @@ static void RssThread(Fuzzer *F, size_t RssLimitMb) {
}
}
-static void StartRssThread(Fuzzer *F, size_t RssLimitMb) {
+void StartRssThread(Fuzzer *F, size_t RssLimitMb) {
if (!RssLimitMb)
return;
std::thread T(RssThread, F, RssLimitMb);
More information about the llvm-commits
mailing list