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

Fix for https://github.com/usnistgov/jsip/issues/46 debug counter not… #47

Merged
merged 1 commit into from
Jan 23, 2019

Conversation

vladimirralev
Copy link
Collaborator

… thread safe and counting in non-debug mode

@vladimirralev vladimirralev merged commit beaefa3 into usnistgov:master Jan 23, 2019
@jagagit
Copy link

jagagit commented Jan 23, 2019

bro,volatile for nesting_level variable solves only data visibility problem between threads.still it will create data inconsistency.I am suggesting to use AtomicLong class in java.util.concurrent.atomic packages.
if Debugging only for single threaded environment .above point are pointless :)

@vladimirralev
Copy link
Collaborator Author

Yeah totally messed up. Will fix.

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