Skip to content

Commit

Permalink
Add changelog entry for [Feature #20057]
Browse files Browse the repository at this point in the history
  • Loading branch information
KJTsanaktsidis committed Dec 13, 2023
1 parent a8d2d93 commit a2994c3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions NEWS.md
Expand Up @@ -277,6 +277,18 @@ changelog for details of the default gems or bundled gems.

## C API updates

* `rb_postponed_job` changes

The postponed job APIs have been changed to address some rare crashes.
There are two new methods for managing postponed jobs; `rb_postponed_job_preregister`
and `rb_postponed_job_trigger`. These APIs replace `rb_postponed_job_register`
and `rb_postponed_job_register_once`, which are now marked as deprecated.
The semantics of these functions have also changed slightly; `rb_postponed_job_register`
now behaves like the `once` variant in that multiple calls with the same
`func` might be coalesced into a single execution of the `func`

[[Feature #20057]]

## Implementation improvements

* `defined?(@ivar)` is optimized with Object Shapes.
Expand Down Expand Up @@ -409,3 +421,4 @@ changelog for details of the default gems or bundled gems.
[Feature #19843]: https://bugs.ruby-lang.org/issues/19843
[Bug #19868]: https://bugs.ruby-lang.org/issues/19868
[Feature #19965]: https://bugs.ruby-lang.org/issues/19965
[Feature #20057]: https://bugs.ruby-lang.org/issues/20057

0 comments on commit a2994c3

Please sign in to comment.