Author: Vitaly Buka Date: 2026-10-30T23:58:47-07:00 New Revision: d79557976e55e1a2db272ac3a21242c7669caa21
URL: https://github.com/llvm/llvm-project/commit/d79557976e55e1a2db272ac3a21242c7669caa21 DIFF: https://github.com/llvm/llvm-project/commit/d79557976e55e1a2db272ac3a21242c7669caa21.diff LOG: Revert "[sanitizer_common][test] Limit signal_segv_handler test time (#236538)" This reverts commit e6f071af3e0f4dd79754eefcae1da900103f3af1. Added: Modified: compiler-rt/test/sanitizer_common/TestCases/Linux/signal_segv_handler.cpp Removed: ################################################################################ diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/signal_segv_handler.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/signal_segv_handler.cpp index f1bb053a00bd6..6e0e8a44e2a51 100644 --- a/compiler-rt/test/sanitizer_common/TestCases/Linux/signal_segv_handler.cpp +++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/signal_segv_handler.cpp @@ -19,7 +19,6 @@ #include <stdlib.h> #include <string.h> #include <sys/mman.h> -#include <time.h> #include <unistd.h> unsigned long page_size; @@ -44,19 +43,10 @@ int main() { assert(a.sa_flags & SA_SIGINFO); guard = mmap(0, 3 * page_size, PROT_NONE, MAP_ANON | MAP_PRIVATE, -1, 0); - guard = (char *)guard + page_size; // work around a kernel bug - - struct timespec start, now; - clock_gettime(CLOCK_MONOTONIC, &start); - + guard = (char*)guard + page_size; // work around a kernel bug for (int i = 0; i < 1000000; i++) { - if (i % 1000 == 0 && i > 0) { - clock_gettime(CLOCK_MONOTONIC, &now); - if (now.tv_sec - start.tv_sec >= 10) - break; - } mprotect(guard, page_size, PROT_NONE); - *(int *)guard = 1; + *(int*)guard = 1; } sigaction(SIGSEGV, &old, 0); fprintf(stderr, "DONE\n"); _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
