aboutsummaryrefslogtreecommitdiff
path: root/drd/drd_rwlock.c
diff options
context:
space:
mode:
authorbart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9>2009-04-13 08:05:18 +0000
committerbart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9>2009-04-13 08:05:18 +0000
commit430c45f9c644abb28f0c034261fdf50e5559318a (patch)
tree2b1fc3d3acf98fcc68473b9029db2a6f2c410996 /drd/drd_rwlock.c
parent80b8b09c2b5107b955909a89f15e1f88852e7bc6 (diff)
downloadvalgrind-430c45f9c644abb28f0c034261fdf50e5559318a.tar.gz
Make sure that DRD does not complain about mutexes being held too long on systems where the clock can go backward. Apparently this happens frequently when Linux is running inside a virtual machine.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9521 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'drd/drd_rwlock.c')
-rw-r--r--drd/drd_rwlock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drd/drd_rwlock.c b/drd/drd_rwlock.c
index a2cfdaf1a..82f28acb6 100644
--- a/drd/drd_rwlock.c
+++ b/drd/drd_rwlock.c
@@ -521,7 +521,7 @@ void DRD_(rwlock_pre_unlock)(const Addr rwlock)
q->reader_nesting_count--;
if (q->reader_nesting_count == 0 && DRD_(s_shared_threshold_ms) > 0)
{
- ULong held = VG_(read_millisecond_timer)() - p->acquiry_time_ms;
+ Long held = VG_(read_millisecond_timer)() - p->acquiry_time_ms;
if (held > DRD_(s_shared_threshold_ms))
{
HoldtimeErrInfo HEI
@@ -539,7 +539,7 @@ void DRD_(rwlock_pre_unlock)(const Addr rwlock)
q->writer_nesting_count--;
if (q->writer_nesting_count == 0 && DRD_(s_exclusive_threshold_ms) > 0)
{
- ULong held = VG_(read_millisecond_timer)() - p->acquiry_time_ms;
+ Long held = VG_(read_millisecond_timer)() - p->acquiry_time_ms;
if (held > DRD_(s_exclusive_threshold_ms))
{
HoldtimeErrInfo HEI