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

Fix profiler not building on ruby-head (3.2) due to VM refactoring #2066

Merged
merged 2 commits into from
Jun 7, 2022

Conversation

ivoanjo
Copy link
Member

@ivoanjo ivoanjo commented Jun 6, 2022

A new struct rb_native_thread was introduced to contain the thread_id (see ruby/ruby#5836) and thus we need to add a ifdef for Ruby 3.2.

Fixes #2065

(Note: We don't yet have Ruby 3.2 in our CI setup, so you'll just have to take my word for it that this makes it compile now! Or try it locally on your own machine :P)

A new `struct rb_native_thread` was introduced to contain the
`thread_id`.

Fixes #2065
The correct modern way to declare a function which takes no arguments
is `void foo(void)` not `void foo()`.
@ivoanjo ivoanjo requested a review from a team June 6, 2022 09:18
@codecov-commenter
Copy link

Codecov Report

Merging #2066 (61e6943) into master (625f115) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #2066   +/-   ##
=======================================
  Coverage   97.49%   97.49%           
=======================================
  Files        1031     1031           
  Lines       53211    53213    +2     
=======================================
+ Hits        51876    51880    +4     
+ Misses       1335     1333    -2     
Impacted Files Coverage Δ
lib/datadog/core/diagnostics/environment_logger.rb 100.00% <0.00%> (+1.58%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@ivoanjo ivoanjo merged commit 2237a8b into master Jun 7, 2022
@ivoanjo ivoanjo deleted the ivoanjo/fix-profiler-build-on-ruby-3_2 branch June 7, 2022 08:06
@github-actions github-actions bot added this to the 1.2.0 milestone Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Profiler broken on ruby-head (3.2), needs DD_PROFILING_NO_EXTENSION=true workaround
3 participants