Skip to content

Do not enable RUBY_DEVEL by RUBY_PATCHLEVEL #4993

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

Merged
merged 1 commit into from
Aug 10, 2022

Conversation

jeremyevans
Copy link
Contributor

This makes RUBY_DEVEL not enabled automatically. It still can be
enabled manually. If enabled manually, it defines USE_RUBY_DEBUG_LOG
to 1 if not defined.

Implements [Feature #17468]

@jeremyevans jeremyevans requested a review from nurse October 19, 2021 21:28
@nobu
Copy link
Member

nobu commented Oct 20, 2021

@jeremyevans Could you rebase?

@jeremyevans jeremyevans force-pushed the ruby-devel-no-auto-17468 branch from fd215d1 to c22f880 Compare October 20, 2021 14:26
@jeremyevans
Copy link
Contributor Author

@nobu I rebased against the current master branch.

vm_debug.h Outdated
#if RUBY_DEVEL
#ifndef USE_RUBY_DEBUG_LOG
#define USE_RUBY_DEBUG_LOG 0
#define USE_RUBY_DEBUG_LOG 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

USE_RUBY_DEBUG_LOG introduces a few performance penalty so it should be off by default even if RUBY_DEVEL is defined, IMO.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I'll make that change.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, no problem on it.

This makes RUBY_DEVEL not enabled automatically.  It still can be
enabled manually.

Test manually using RUBY_DEVEL in CI.

Implements [Feature #17468]
@jeremyevans jeremyevans force-pushed the ruby-devel-no-auto-17468 branch from 7f66cd2 to e8b22aa Compare August 9, 2022 20:14
@jeremyevans jeremyevans merged commit 357352a into ruby:master Aug 10, 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.

3 participants