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

[Item 81] Race condition in Intern.java #20

Open
drnow4u opened this issue Nov 9, 2020 · 0 comments
Open

[Item 81] Race condition in Intern.java #20

drnow4u opened this issue Nov 9, 2020 · 0 comments

Comments

@drnow4u
Copy link

drnow4u commented Nov 9, 2020

Dear Joshua,

In example class Intern and method intern is race condition between line 18 and 19. It can also lead to memory leak.

Kindly regards,
Marcin

PS
Thank you for your book. I'm continuously learning new things from it.

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

No branches or pull requests

1 participant