Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 178d8ff171fc089484ad4e68cd8d38b1895d0c950da460463d062b8966c47acb
Ticket: 893f8cc5db3ba8bd6bed80ce89a0a75c6088a37c
Nested mutexes following TIP 509
User & Date: jan.nijtmans on 2025-10-06 09:18:06
Changes

  1. closedate changed to: "2460954.887577"
  2. closer changed to: "jan.nijtmans"
  3. icomment:
    @ashok. I see the following failure - sometimes - on MacOS:
    <pre>
    ==== mutex-condition-3 mutex condition 10/1/20000/0 FAILED
    ==== Contents of test case:
    
                    lassign  [testmutex condition $nthreads $recursion $iters $yield]  enqTotal enqPerThread enqTimeouts  deqTotal deqPerThread deqTimeouts
                    list  $enqTotal [fairness $totalOps $enqPerThread] $enqTimeouts  $deqTotal [fairness $totalOps $deqPerThread] $deqTimeouts
                
    ---- Result was:
    200000 {Thread share 19134 < 0.5 fair share 40000} 0 200000 {} 0
    ---- Result should have been (exact matching):
    200000 {} 0 200000 {} 0
    ==== mutex-condition-3 FAILED
    </pre>
    
    I don't think this is related to recursive mutexes at all, since it only shows on MacOS. Can this testcase be backported to 8.6, so we can see if it happens there too? Could we change the factor from 0.5 to 0.4, would that be reasonable?
    
  4. login: "jan.nijtmans"
  5. mimetype: "text/x-fossil-wiki"