Skip to content

Drop Thread::Local(T)#16179

Merged
ysbaddaden merged 1 commit intocrystal-lang:masterfrom
ysbaddaden:chore/drop-thread-local-t
Oct 3, 2025
Merged

Drop Thread::Local(T)#16179
ysbaddaden merged 1 commit intocrystal-lang:masterfrom
ysbaddaden:chore/drop-thread-local-t

Conversation

@ysbaddaden
Copy link
Collaborator

@ysbaddaden ysbaddaden commented Sep 29, 2025

It's main feature was the ability to work on every target (unlike the current @[ThreadLocal] annotation) and to register destructors... but the annotation can be fixed using the EmulatedTLS LLVM option (see #16176), and the destructor is crashing on x86_64-darwin when mixing pthreads, unwind and pcre2 (see #15955).

It's an internal type, we don't plan to use it anymore, and #16173 shall replace it. Let's drop it. Let's revert.

@straight-shoota
Copy link
Member

Should we also remove the lib bindings added in #15616 in order to revert that change entirely?

@ysbaddaden
Copy link
Collaborator Author

I wondered about that. It doesn't hurt to keep them, but I guess we won't use them, so... we shall just revert the merge.

@ysbaddaden ysbaddaden force-pushed the chore/drop-thread-local-t branch from 1494ba7 to 0614448 Compare September 29, 2025 15:43
@straight-shoota straight-shoota added this to the 1.18.0 milestone Sep 29, 2025
@ysbaddaden ysbaddaden merged commit 5915496 into crystal-lang:master Oct 3, 2025
39 checks passed
@github-project-automation github-project-automation bot moved this from Review to Done in Multi-threading Oct 3, 2025
@ysbaddaden ysbaddaden deleted the chore/drop-thread-local-t branch October 3, 2025 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants