diff options
| author | Jean Boussier <byroot@ruby-lang.org> | 2022-12-07 09:53:27 +0100 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2022-12-07 10:08:25 +0100 |
| commit | 1968b4e2c7f9ae7a4d9f4bc6f7f6da0efc6afb75 (patch) | |
| tree | f5a67557e8bf3ddf5e4c8ec17b9f61900719f02b | |
| parent | bcd8b2f00aef8fdaa54f1d76ca841ae8d10e5e0f (diff) | |
Mention `rb_hash_new_capa` and `rb_internal_thread_*` in NEWS.md
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6871
| -rw-r--r-- | NEWS.md | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -542,6 +542,18 @@ The following APIs are updated. Extension libraries which use this interface and built for older versions. Also `init_int32` function needs to be defined. +### Added C APIs + +* `VALUE rb_hash_new_capa(long capa)` was added to created hashes with the desired capacity. +* `rb_internal_thread_add_event_hook` and `rb_internal_thread_add_event_hook` were added to instrument threads scheduling. + The following events are available: + * `RUBY_INTERNAL_THREAD_EVENT_STARTED` + * `RUBY_INTERNAL_THREAD_EVENT_READY` + * `RUBY_INTERNAL_THREAD_EVENT_RESUMED` + * `RUBY_INTERNAL_THREAD_EVENT_SUSPENDED` + * `RUBY_INTERNAL_THREAD_EVENT_EXITED` + + ### Removed C APIs The following deprecated APIs are removed. |
