On Saturday, 21 November 2020 at 09:47:38 UTC, IGotD- wrote: > What is necessary in order to solve this problem? If you don't want to teach the compiler about the critical section size for your target, you'll need to convert all expression-less `synchronized` statements to ones with an explicit mutex.