From: Eric Wong Date: 2017-03-02T03:15:16+00:00 Subject: [ruby-core:79853] Re: [Ruby trunk Feature#13245] [PATCH] reject inter-thread TLS modification How about we allow some inter-thread TLS operations, but not others? Maybe: Allowed: + reading values + updating value of existing keys (maybe) Disallowed: - setting value to a new key In other words, the Allowed stuff is safe using a lock-free hash table (maybe using rculfhash found in URCU ) At least in non-Ruby (C99) projects, I've found inter-thread TLS access useful when combined with atomic instructions. But also, I guess there's no need to use Thread#[] at all if two threads already agree to share some objects... Unsubscribe: