]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
FreeBSD Helgrind: turn off check for locks held on exit for FreeBSD 14.2
authorPaul Floyd <pjfloyd@wanadoo.fr>
Fri, 25 Oct 2024 21:25:26 +0000 (23:25 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Fri, 25 Oct 2024 21:25:26 +0000 (23:25 +0200)
thread-safe exit included in FreeBSD 14.2-PRERELEASE

helgrind/hg_main.c

index 2d7eea0d731c07bfb4fbfa7243ee030613cf7b3b..bbf95c0ba0cc563de1738191cd06367b75ab18ad 100644 (file)
@@ -1719,11 +1719,11 @@ void evh__pre_thread_ll_exit ( ThreadId quit_tid )
    Bool lock_at_exit = False;
 #if defined(VGO_freebsd)
    /* Bugzilla 494337
-    * temporary (?): turn off this check on FreeBSD 15+
+    * temporary (?): turn off this check on FreeBSD 14.2+
     * there is a lock during exit() to make it thread safe
     * but that lock gets leaked.
     */
-   if (VG_(getosreldate)() > 1500000) {
+   if (VG_(getosreldate)() > 1401500) {
       lock_at_exit = True;
    }
 #endif