mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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. [ruby-core:85621] [Feature #14487] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e72a86fc93
commit
475b4aa40b
7 changed files with 20 additions and 38 deletions
|
@ -1704,7 +1704,6 @@ int rb_match_nth_defined(int nth, VALUE match);
|
|||
/* signal.c */
|
||||
extern int ruby_enable_coredump;
|
||||
int rb_get_next_signal(void);
|
||||
int rb_sigaltstack_size(void);
|
||||
|
||||
/* st.c */
|
||||
extern void rb_hash_bulk_insert(long, const VALUE *, VALUE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue