Tcl package Thread source code

Ticket Change Details
Login
Overview

Artifact ID: 185e9043381d15db976a08912c1f81e04fa439276dc45d035da9e96ec977a543
Ticket: c6057948e5f884435ee35517008db0205f286a5e
tsv commands break thread access rules for Tcl values
User & Date: dgp 2018-04-03 12:45:07
Changes

  1. Change icomment to:

    There's a far bigger concern about general sharing of a Tcl_Obj struct by multiple threads, though, and it is the volatility of the internal representation. Shimmering.

    Any code that interacts with an internal rep commonly has a structure of using objPtr->typePtr to determine the routines to use to act on the internal rep. Those routines proceed on the belief the internal rep's nature is not going to change while the routine runs. All internal rep access and manipulation is written on a foundational assumption of single-thread access.

    If you get multiple threads passing through changing intrep details out from under each other, there is going to be serious trouble.

  2. Change login to "dgp"
  3. Change mimetype to "text/plain"