From: normalperson@... Date: 2018-02-18T21:28:35+00:00 Subject: [ruby-core:85621] [Ruby trunk Feature#14487] [PATCH] simplify altstack and enable reuse with thread cache Issue #14487 has been reported by normalperson (Eric Wong). ---------------------------------------- Feature #14487: [PATCH] simplify altstack and enable reuse with thread cache https://bugs.ruby-lang.org/issues/14487 * Author: normalperson (Eric Wong) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- simplify altstack and enable reuse with thread cache Instead of allocating and registering the altstack in different places, do it together to reduce code and improve readability. When thread cache is enabled, storing altstack in rb_thread_t is wasteful and we may reuse altstack in the same pthread. This also lets us clearly allow use of xmalloc to allow GC to recover from ENOMEM. This seems straighforward and will commit soonish if no objections. (Still working on improving + benchmarking thread cache; hardware sucks :<) ---Files-------------------------------- 0001-simplify-altstack-and-enable-reuse-with-thread-cache.patch (5.88 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: