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

Call remove on ThreadLocal variable when no longer need. #2888

Conversation

c71n93
Copy link
Member

@c71n93 c71n93 commented Feb 20, 2024

Closes #2887. This should fix the corresponding reliability issue from Sonar.


PR-Codex overview

This PR adds a cleanUp method to PhPackage.java to release resources and prevent memory leaks.

Detailed summary

  • Added cleanUp method to release resources in PhPackage.java
  • Utilizes ThreadLocal#remove() to prevent memory leaks

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@maxonfjvipon
Copy link
Member

@c71n93 what's up with this one?

@c71n93
Copy link
Member Author

c71n93 commented Apr 11, 2024

@maxonfjvipon there are more critical problems with Sonar, so we can just close this one for now.

@c71n93 c71n93 closed this Apr 11, 2024
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.

Issue from Sonar (PhPackage.java): Call "remove()" on "objects".
2 participants