Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7a86bb469955b8aee280ceb0f05511aed70cd3aa071822074a8744214c7f76f1
Ticket: 893f8cc5db3ba8bd6bed80ce89a0a75c6088a37c
Nested mutexes following TIP 509
User & Date: sebres on 2025-09-25 13:55:31
Changes

  1. icomment:
    CI failed again - [https://github.com/tcltk/tcl/actions/runs/18000251395/job/51215850058|GHA#runs/18000251395/job/51215850058], this time with symbols only (mem-debug was not affected because it doesn't use thread-alloc).
    
    Fixed in [cfc51c43785413bd], since the mutex is not a simple critical section anymore, so allocMutex is larger now (and therefore the heap going broken).
    
    But... (I'll not stop to repeat)...
    
    It bothers now the thread-alloc too... The recursive mutex is completely unneeded there as basically everywhere in 100% of Tcl code, so please, lets revert this completely and in best case provide the TIP 509 as new API (for people that need it), however I don't ever think we shall do that within tcl itself (and not as some module). Just because TIP 509 was and still is an error and recursive mutexes are evil, introduce conceptual bugs and needed only on some very special cases. Anyway definitely not as replacement for default Tcl_Mutex.
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"