memdebug: make logging thread-safe

This should make it work fine even when using threads, like in the
threaded resolver.
This commit is contained in:
Daniel Stenberg 2025-11-27 12:25:34 +01:00
parent aa9342058f
commit c7ca9ba1ac
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 25 additions and 27 deletions

View file

@ -851,10 +851,6 @@ sub checksystemfeatures {
die "cannot run torture tests since curl was built without ".
"TrackMemory feature (--enable-curldebug)";
}
if($feature{"threaded-resolver"} && !$valgrind) {
die "cannot run torture tests since curl was built with the ".
"threaded resolver, and we are not running with valgrind";
}
}
my $hostname=join(' ', runclientoutput("hostname"));
@ -879,13 +875,6 @@ sub checksystemfeatures {
# Only show if not the default for now
logmsg "* Jobs: $jobs\n";
}
# Disable memory tracking when using threaded resolver
if($feature{"TrackMemory"} && $feature{"threaded-resolver"}) {
logmsg("*\n",
"*** DISABLES TrackMemory (memory tracking) when using threaded resolver\n",
"*\n");
$feature{"TrackMemory"} = 0;
}
my $env = sprintf("%s%s%s%s%s",
$valgrind?"Valgrind ":"",