Skip to content

[6.0][region-isolation] Move logging in front of NDEBUG to make it easier to triage with no asserts compilers #75829

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

Conversation

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Aug 12, 2024

Explanation: [region-isolation] Move logging in front of NDEBUG to make it easier to triage with no asserts compilers

This is just an attempt to make it easier to triage reported issues from no-asserts compilers. Today we compile those out, so I need to always compile an asserts compiler to do a basic triage. By moving this in front of NDEBUG, we ensure that we can enable this logging in no-asserts compilers.

Radars:

  • rdar://133701799

Original PRs:

Risk: Low. This just adds a new macro instead of LLVM_DEBUG that enables/disables the debugging error msgs in the same manner except controlled by a different command line option that is available when asserts are disabled.

@gottesmm gottesmm requested a review from a team as a code owner August 12, 2024 03:48
@gottesmm
Copy link
Contributor Author

@swift-ci test

@gottesmm gottesmm enabled auto-merge August 12, 2024 18:47
@hborla hborla marked this pull request as draft August 12, 2024 18:53
auto-merge was automatically disabled August 12, 2024 18:53

Pull request was converted to draft

@hborla
Copy link
Member

hborla commented Aug 12, 2024

This change is not targeting 6.0. I've converted this to a draft until we have a release/6.0.0 branch, freeing up release/6.0 for other potential point release changes.

…ts builds.

This will just help me to more quickly triage without needing to compile an
asserts compiler.

(cherry picked from commit 1fbc930)
…serts but just print out NOASSERTS instead of a debug id.

(cherry picked from commit 2e08d61)
…rint}ID are in front of NDEBUG.

(cherry picked from commit 226e97a)
…titionUtils.h -> RegionIsolation.h

These do not specifically have to do with PartitionUtils... they are really
logging options for the whole infrastructure, so it makes sense to have them in
the a different file.

(cherry picked from commit b477433)
…d the emitted error when triaging code.

Just trying to improve my triaging speed by making it easier to triage.

(cherry picked from commit a36b374)
@gottesmm gottesmm force-pushed the release/6.0-make-debugging-easier branch from 0f09485 to 36ec99a Compare August 22, 2024 16:31
@gottesmm
Copy link
Contributor Author

@swift-ci test

@gottesmm
Copy link
Contributor Author

Added a little more logging commits from main that make it quicker to triage.

Copy link
Contributor

@tbkka tbkka left a comment

Choose a reason for hiding this comment

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

Nice!

@gottesmm
Copy link
Contributor Author

Didn't need this in the end. Closing.

@gottesmm gottesmm closed this Apr 16, 2025
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