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

[C++] DCHECK macro conditions are evaluated in release builds #21195

Closed
asfimport opened this issue Feb 22, 2019 · 2 comments
Closed

[C++] DCHECK macro conditions are evaluated in release builds #21195

asfimport opened this issue Feb 22, 2019 · 2 comments
Assignees
Milestone

Comments

@asfimport
Copy link

DCHECK(potentially_expensive()) will evaluate the argument even in release mode, and is used in several places with the assumption that it will do so (which means removing the guarantee of evaluation causes numerous failures). By contrast, most debug assertion macros elide their arguments entirely (<cassert>.assert, <glog/logging.h>) in release mode

Reporter: Ben Kietzman / @bkietz
Assignee: Wes McKinney / @wesm

PRs and other links:

Note: This issue was originally created as ARROW-4664. Please see the migration documentation for further details.

@asfimport
Copy link
Author

Wes McKinney / @wesm:
I think this is a rather serious issue actually.

@asfimport
Copy link
Author

Wes McKinney / @wesm:
Issue resolved by pull request 3854
#3854

@asfimport asfimport added this to the 0.13.0 milestone Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants