Skip to content

Commit

Permalink
Merge pull request tmm1#186 from Shopify/fix-2.x-compat
Browse files Browse the repository at this point in the history
Use postponed jobs on Ruby 2.x
  • Loading branch information
tenderlove authored Aug 22, 2022
2 parents 6bbabf1 + 9f78db5 commit c98d61a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ext/stackprof/stackprof.c
Original file line number Diff line number Diff line change
Expand Up @@ -832,9 +832,7 @@ Init_stackprof(void)
* As of Ruby 3.0, it should be safe to read stack frames at any time, unless YJIT is enabled
* See https://github.com/ruby/ruby/commit/0e276dc458f94d9d79a0f7c7669bde84abe80f21
*/
#if RUBY_API_VERSION_MAJOR < 3
stackprof_use_postponed_job = 0;
#endif
stackprof_use_postponed_job = RUBY_API_VERSION_MAJOR < 3;

size_t i;
#define S(name) sym_##name = ID2SYM(rb_intern(#name));
Expand Down

0 comments on commit c98d61a

Please sign in to comment.