ozhera
ozhera copied to clipboard
Use Java20 and Coroutines in Ozhera: A Caution Against Synchronized and a Recommendation for ReentrantLock
At present, Java20 and coroutines are used in many places in Ozhera. Here, be careful with the use of synchronized, otherwise it can easily lead to threads being pinned. Try to use ReentrantLock in the code contributed. If you want to know more details, you can refer to a test case:https://github.com/XiaoMi/mone/issues/744