Closed vladimirralev closed 5 years ago
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 :)
Yeah totally messed up. Will fix.
… thread safe and counting in non-debug mode