Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NO-TICKET] Do not reference rb_gc_force_recycle on Ruby 3.1+ #3578

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

ivoanjo
Copy link
Member

@ivoanjo ivoanjo commented Apr 9, 2024

What does this PR do?

This PR avoids referencing rb_gc_force_recycle on Rubies where this method is a no-op.

Motivation:

This method will be removed in Ruby 3.4
( ruby/ruby#10324 ) so we should stop referencing it.

Additional Notes:

N/A

How to test the change?

Validate that CI is still green.

**What does this PR do?**

This PR avoids referencing `rb_gc_force_recycle` on Rubies where this
method is a no-op.

**Motivation:**

This method will be removed in Ruby 3.4
( ruby/ruby#10324 ) so we should stop
referencing it.

**Additional Notes:**

N/A

**How to test the change?**

Validate that CI is still green.
@ivoanjo ivoanjo requested a review from a team as a code owner April 9, 2024 08:26
@github-actions github-actions bot added the profiling Involves Datadog profiling label Apr 9, 2024
@ivoanjo ivoanjo added this to the 1.22.0 milestone Apr 9, 2024
The parameter is expected to be unused on modern Rubies since this
function becomes a no-op.
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.24%. Comparing base (ffc2546) to head (0b4fac5).
Report is 22 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3578      +/-   ##
==========================================
- Coverage   98.27%   98.24%   -0.03%     
==========================================
  Files        1274     1254      -20     
  Lines       75233    74355     -878     
  Branches     3545     3529      -16     
==========================================
- Hits        73934    73052     -882     
- Misses       1299     1303       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ivoanjo ivoanjo merged commit 07c75b8 into master Apr 9, 2024
207 checks passed
@ivoanjo ivoanjo deleted the ivoanjo/no-rb-gc-force-recycle-modern-rubies branch April 9, 2024 12:14
ko1 added a commit to ko1/ruby that referenced this pull request Apr 10, 2024
and declare it will be removed soon.

ddtrace is still referes the API and build was failed.
See DataDog/dd-trace-rb#3578

Maybe threre are only few users of this C-API now so we can remove
it soon.
ko1 added a commit to ko1/ruby that referenced this pull request Apr 11, 2024
and declare it will be removed soon.

ddtrace is still referes the API and build was failed.
See DataDog/dd-trace-rb#3578

Maybe threre are only few users of this C-API now so we can remove
it soon.
ko1 added a commit to ruby/ruby that referenced this pull request Apr 11, 2024
and declare it will be removed soon.

ddtrace is still referes the API and build was failed.
See DataDog/dd-trace-rb#3578

Maybe threre are only few users of this C-API now so we can remove
it soon.
artur-intech pushed a commit to artur-intech/ruby that referenced this pull request Apr 26, 2024
and declare it will be removed soon.

ddtrace is still referes the API and build was failed.
See DataDog/dd-trace-rb#3578

Maybe threre are only few users of this C-API now so we can remove
it soon.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
profiling Involves Datadog profiling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants