mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:13:36 +03:00
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:
parent
aa9342058f
commit
c7ca9ba1ac
5 changed files with 25 additions and 27 deletions
|
|
@ -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 ":"",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue