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

NoNewGlobals for cache_mem_map #1781

Closed
wants to merge 3 commits into from

Conversation

kinkie
Copy link
Contributor

@kinkie kinkie commented Apr 14, 2024

Detected by Coverity. CID 1554648: Initialization or destruction
ordering is unspecified (GLOBAL_INIT_ORDER).

Revert MapLabel to a POD type.
Detected by Coverity. CID 1554648: Initialization or destruction
ordering is unspecified (GLOBAL_INIT_ORDER).
@kinkie kinkie force-pushed the coverity-cid-1554648 branch from 74203fe to 4e95cfe Compare April 14, 2024 12:46
@rousskov rousskov changed the title NoNewGlobals for MemStoreMap NoNewGlobals for cache_mem_map Apr 14, 2024
rousskov
rousskov previously approved these changes Apr 14, 2024
Copy link
Contributor

@rousskov rousskov left a comment

Choose a reason for hiding this comment

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

Thank you for fixing it. I polished formatting and PR description for consistency (with nearby declarations and similar official commits).

I also adjusted PR title because we are not fixing MemStoreMap itself here, but I do not insist on that adjustment.

P.S. We need to adjust NoNewGlobals text to explicitly exclude built-in/intrinsic types that are not initialized using functions. This PR is an example of a use case that is excluded.

src/MemStore.cc Outdated Show resolved Hide resolved
@kinkie kinkie added the S-waiting-for-reviewer ready for review: Set this when requesting a (re)review using GitHub PR Reviewers box label Apr 15, 2024
@rousskov rousskov added M-cleared-for-merge https://github.com/measurement-factory/anubis#pull-request-labels S-could-use-an-approval An approval may speed this PR merger (but is not required) and removed S-waiting-for-reviewer ready for review: Set this when requesting a (re)review using GitHub PR Reviewers box labels Apr 15, 2024
squid-anubis pushed a commit that referenced this pull request Apr 16, 2024
Detected by Coverity. CID 1554648: Initialization or destruction
ordering is unspecified (GLOBAL_INIT_ORDER).
@squid-anubis squid-anubis added the M-waiting-staging-checks https://github.com/measurement-factory/anubis#pull-request-labels label Apr 16, 2024
@rousskov rousskov removed the S-could-use-an-approval An approval may speed this PR merger (but is not required) label Apr 16, 2024
@squid-anubis squid-anubis added M-merged https://github.com/measurement-factory/anubis#pull-request-labels and removed M-waiting-staging-checks https://github.com/measurement-factory/anubis#pull-request-labels M-cleared-for-merge https://github.com/measurement-factory/anubis#pull-request-labels labels Apr 16, 2024
kinkie added a commit to kinkie/squid that referenced this pull request Jun 22, 2024
Detected by Coverity. CID 1554648: Initialization or destruction
ordering is unspecified (GLOBAL_INIT_ORDER).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
M-merged https://github.com/measurement-factory/anubis#pull-request-labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants