MaxKellermann commented on pull request #155: URL: https://github.com/apache/commons-vfs/pull/155#issuecomment-796694054
Being a C++ expert, I have very little experience with Java's memory model, but in C or C++, `volatile` is not thread-safe (even though many people believe it is, and get away with the bad assumption most of the time). Apart from that, tracking users of an object across all threads is one thing - but making a decision based on that in `LRUFilesCache` is even harder, due to potential TOCTOU problems. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
