Tk Source Code

Check-in [3f22f896]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make the base chunk of the text layout thread-specific.

The base chunk of the stretch being laid out was kept in a static variable, so text widgets laid out concurrently in several threads overwrote each other's pointer and crashed. Base chunks are used on macOS, and since the bidi text rendering also on Windows and X11. [Bug a0c1a9c6c6]

Downloads: See separate download page
Timelines: family | ancestors | descendants | both | text-basechunk-threads
Files: files | file ages | folders
SHA3-256: 3f22f896dcf9bcb33b3de8f9dd6dd91a008448428d271f072294f2fca155a564
User & Date: serhiy.storchaka 2026-09-24 11:51:19.757
Context
2026-10-06
10:37
Fix [a0c1a9c6c6]: Make the base chunk of the text layout thread-specific check-in: 2320e601 user: jan.nijtmans tags: trunk, main
2026-09-24
11:51
Make the base chunk of the text layout thread-specific.

The base chunk of the stretch being laid out was kept in a static variable, so text widgets laid out concurrently in several threads overwrote each other's pointer and crashed. Base chunks are used on macOS, and since the bidi text rendering also on Windows and X11. [Bug a0c1a9c6c6] closed check-in: 3f22f896 user: serhiy.storchaka tags: text-basechunk-threads

11:04
New testcase spinbox-26.2 check-in: 76e79776 user: jan.nijtmans tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tkTextDisp.c.