|
From: <sv...@va...> - 2010-10-25 18:19:13
|
Author: bart Date: 2010-10-25 19:18:54 +0100 (Mon, 25 Oct 2010) New Revision: 11477 Log: DRD: the help text does now indicate that lock contention detection is off by default / changed default value of the exclusive mutex threshold from 1000s to off. See also #255247. Modified: trunk/drd/drd_main.c trunk/drd/drd_mutex.c Modified: trunk/drd/drd_main.c =================================================================== --- trunk/drd/drd_main.c 2010-10-22 15:09:38 UTC (rev 11476) +++ trunk/drd/drd_main.c 2010-10-25 18:18:54 UTC (rev 11477) @@ -184,7 +184,8 @@ " --check-stack-var=yes|no Whether or not to report data races on\n" " stack variables [no].\n" " --exclusive-threshold=<n> Print an error message if any mutex or\n" -" writer lock is held longer than the specified time (in milliseconds).\n" +" writer lock is held longer than the specified\n" +" time (in milliseconds) [off].\n" " --first-race-only=yes|no Only report the first data race that occurs on\n" " a memory location instead of all races [no].\n" " --free-is-write=yes|no Whether to report races between freeing memory\n" @@ -201,7 +202,8 @@ " --segment-merging-interval=<n> Perform segment merging every time n new\n" " segments have been created. Default: %d.\n" " --shared-threshold=<n> Print an error message if a reader lock\n" -" is held longer than the specified time (in milliseconds).\n" +" is held longer than the specified time (in\n" +" milliseconds) [off]\n" " --show-confl-seg=yes|no Show conflicting segments in race reports [yes].\n" " --show-stack-usage=yes|no Print stack usage at thread exit time [no].\n" "\n" Modified: trunk/drd/drd_mutex.c =================================================================== --- trunk/drd/drd_mutex.c 2010-10-22 15:09:38 UTC (rev 11476) +++ trunk/drd/drd_mutex.c 2010-10-25 18:18:54 UTC (rev 11477) @@ -49,7 +49,7 @@ static Bool s_trace_mutex; static ULong s_mutex_lock_count; static ULong s_mutex_segment_creation_count; -static UInt s_mutex_lock_threshold_ms = 1000 * 1000; +static UInt s_mutex_lock_threshold_ms; /* Function definitions. */ |