Skip to content

Conversation

@zhengyu123
Copy link
Contributor

What does this PR do?:

Motivation:

Additional Notes:

How to test the change?:

For Datadog employees:

  • If this PR touches code that signs or publishes builds or packages, or handles
    credentials of any kind, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.
  • JIRA: [JIRA-XXXX]

Unsure? Have a question? Request a review!

UNSAFE = unsafe;
}

private static long activeCountAddr = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

🟠 Code Quality Violation

Suggested change
private static long activeCountAddr = 0;
private static long activeCountAddr;
Remove initialization, this is already the default value. (...read more)

When initializing fields, prevent initializing fields to the default value. Any additional initialization means more bytecode instructions, and allocating many of these objects may impact your application performance.

If you initialize to a default value, remove the initialization.

View in Datadog  Leave us feedback  Documentation

@github-actions
Copy link

github-actions bot commented Jun 11, 2025

🔧 Report generated by pr-comment-cppcheck

CppCheck Report

Errors (2)

Warnings (4)

Style Violations (298)

@github-actions
Copy link

github-actions bot commented Jun 11, 2025

🔧 Report generated by pr-comment-scanbuild

@zhengyu123 zhengyu123 closed this Jun 25, 2025
@zhengyu123 zhengyu123 deleted the zgu/threadfilter branch June 25, 2025 11:57
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.

2 participants